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: Return Values from SQL Script
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Dec 10, 2008
02:18 PM
Return Values from SQL Script
Hello, I have an InstallScript project that I am working on and would like to be able to execute an SQL script and store a return value from the SQL script in a variable defined in my InstallScript function. For example, I would like to do something like:
STRING szSQLResult;
szSQLResult = fnRunSQLScript(nHwnd);
Does anyone know if/how this can be done?
Thanks.
Tim
STRING szSQLResult;
szSQLResult = fnRunSQLScript(nHwnd);
Does anyone know if/how this can be done?
Thanks.
Tim
(3) Replies
‎Dec 11, 2008
09:01 PM
I was a bit suprised that InstallShields SQL Scripts pattern for MSI can't even handle a simple ExecuteScalar scenario where one column and one row is mappen back to a single property.
Fortunatly I have DTF and ADO.NET so it didn't take too much code to write it myself.
Fortunatly I have DTF and ADO.NET so it didn't take too much code to write it myself.