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
- :
- Run SQL script, then run EXE, then run another SQL script
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
‎Aug 13, 2009
01:00 PM
Run SQL script, then run EXE, then run another SQL script
Hello.
I am new to InstallShield and developing my first MSI project. I have a situation where I need to drop foreign keys in the user's database, then use Microsoft's BCP utility to insert data to the database, then I need to add the foreign keys back. Is there any way to sequence the project so that I can run the first SQL script, then launch an executable for the BCP, then run the second SQL script?
Thanks,
Annie
I am new to InstallShield and developing my first MSI project. I have a situation where I need to drop foreign keys in the user's database, then use Microsoft's BCP utility to insert data to the database, then I need to add the foreign keys back. Is there any way to sequence the project so that I can run the first SQL script, then launch an executable for the BCP, then run the second SQL script?
Thanks,
Annie
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 13, 2009
01:50 PM
If you are using the SQL Scripts view to execute your SQL scripts, there is no good way to handle it. You may want to consider using the BULK INSERT (Transact-SQL) statement instead of the BCP utility.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 13, 2009
01:59 PM
That may work for me. I'll give it a try.
Thank you.
Annie
Thank you.
Annie