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
- :
- Re: How to Execute Stored Procedure
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
‎Jan 28, 2016
05:14 PM
How to Execute Stored Procedure
How can I execute a Stored Procedure in my InstallScript MSI project? I already have SQL connectivity and am running scripts, but I don't think the SQL Scripts view is relevant for SPs. I am considering using SQLCMD in a LAUNCHAPPANDWAIT command in my InstallScript code, but I can't even get the command line correct from a command prompt on the target machine.
I also have 2 variables to pass and not sure how to do that either. Can't post what I have tried here because site won't allow it.
Any help is appreciated. Maybe there is a better way to do it. I do know that SQLCMD will be installed, but can't rely on other things being installed.
Thanks
I also have 2 variables to pass and not sure how to do that either. Can't post what I have tried here because site won't allow it.
Any help is appreciated. Maybe there is a better way to do it. I do know that SQLCMD will be installed, but can't rely on other things being installed.
Thanks
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 05, 2016
03:52 PM
rguggisberg,
We use ADO via InstallScript to execute special SQL scripts. The code is based on the example found here:
http://www.installsite.org/pages/en/isp_db.htm
SQL Server Database Maintenance
DatabaseFunctions.zip
HTH
We use ADO via InstallScript to execute special SQL scripts. The code is based on the example found here:
http://www.installsite.org/pages/en/isp_db.htm
SQL Server Database Maintenance
DatabaseFunctions.zip
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 05, 2016
04:24 PM
Thanks for reminding me 🙂
I got this to work by executing LaunchAppAndWait on SQLCMD in a CA. I tried to post part of it here but this sites security rules will not accept it.
I got this to work by executing LaunchAppAndWait on SQLCMD in a CA. I tried to post part of it here but this sites security rules will not accept it.
