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
- :
- How to Execute SQL Script while installing databae from InstallShield 2009
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2009
06:04 AM
How to Execute SQL Script while installing databae from InstallShield 2009
I am creating a project to install a (MySql) database in InstallShield2009. I want to execute a SQL script when installing the setup.
1) I am using MySQL 4.1.7.
2) I have installed ODBC driver for MySQL 5.1
3) I have created a new connection.
4) I have inserted a sql script and associated its corresponding component with a feature.
5) I have specified {MySQL ODBC 5.1 Driver} in the AdoDriverName column in the ISSQLDBMetaData table in the Direct Editor.
I am able to connect to the database tool. And Installation completed without any error.
But the Scripts are not executed as the script results are not updated in the database.
Please help me to execute the sql script.
ankur
1) I am using MySQL 4.1.7.
2) I have installed ODBC driver for MySQL 5.1
3) I have created a new connection.
4) I have inserted a sql script and associated its corresponding component with a feature.
5) I have specified {MySQL ODBC 5.1 Driver} in the AdoDriverName column in the ISSQLDBMetaData table in the Direct Editor.
I am able to connect to the database tool. And Installation completed without any error.
But the Scripts are not executed as the script results are not updated in the database.
Please help me to execute the sql script.
ankur
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2009
01:42 PM
Would it be possible for you to post a sample project that reproduces the behavior so that I can look into it?
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2009
01:06 AM
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2009
10:11 AM
Please try putting a batch separator as follows and see if it works.
INSERT INTO test.tab VALUES (3);
GO
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 19, 2009
02:10 AM
Thank you very much.
The last 'Go' was missing.
It is working now.
Thanks once again.
The last 'Go' was missing.
It is working now.
Thanks once again.