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: InstallScript - Executing SQL Scripts
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 11, 2008
10:20 PM
InstallScript - Executing SQL Scripts
Hello, I have written an InstallScript project that executes several SQL scripts. The project works fairly well, but I want to hide the SQL Login dialog box and provide the connection and login information to the SQL Server via InstallScript as most if not all of my users are simply going to be confused by the SQL Login dialog. However, it appears that when I do comment out the display of this dialog, the event for OnSQLBatchScripts never gets fired.
Does anyone know if there is a way for me to do what I want to do?
Thanks!
Does anyone know if there is a way for me to do what I want to do?
Thanks!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 14, 2008
09:46 AM
Which code did you comment out? You only need to comment out the following line in the OnSQLServerInitialize() event in order to suppress the SQLLogin dialog.
nResult = SQLServerSelectLogin2( szConnection, szServer, szUser, szPassword, bWinLogin, szDB, FALSE, TRUE );
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 14, 2008
12:45 PM
Thank you, I will give that a try.
Tim
Tim
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 14, 2008
02:38 PM
Thanks, I tried it what you suggested and it worked like a charm!
Tim
Tim