This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Executing SQL Scripts in InstallScript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 11, 2009
03:53 PM
Executing SQL Scripts in InstallScript
In Basic MSI projects, I have never had a problem executing SQL scripts in the SQL Scripts view of the IDE.
I am working on an InstallScript project now, and am having problems using the SQL Scripts view. During installation, I get an error for a script that is populating a database. Now this script executes fine when I do it from SQL Server Management Studio, so I know it is okay.
From looking at previous posts, the opinion I have come to is that more success has been had when you make SQL calls from the script, rather than by using the SQL Scripts view.
Is that correct?
I am working on an InstallScript project now, and am having problems using the SQL Scripts view. During installation, I get an error for a script that is populating a database. Now this script executes fine when I do it from SQL Server Management Studio, so I know it is okay.
From looking at previous posts, the opinion I have come to is that more success has been had when you make SQL calls from the script, rather than by using the SQL Scripts view.
Is that correct?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 11, 2009
05:11 PM
Can you try running the script during login and see if it solves the issue? You can change the script execution option in the Script | Runtime tab of the SQL Scripts view. If the script contains multiple statements, please move the statement populating a database to a new script file, and have the rest of statements run during installation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 11, 2009
06:02 PM
Thanks for the help. That solved the problem.