Running Large SQL Scripts - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

visualsi
Posts: 40
Joined: Fri Oct 14, 2011 4:16 pm

Running Large SQL Scripts

The following appears to be a very common problem because lots of people have asked about it - but they always get asked for more information and no resolution is ever presented (or at least I can't find one).

We have a SQL script to create one of our databases when the product is initially installed. It is over 65MB. Yes, it runs in SSMS, but when put in an installer it causes the resulting product to hang indefinitely, telling the user "Generating actions to configure databases for install SQL script execution". It uses about 50% of the machine's CPU but accesses no files, nor does it generate any network traffic, nor does it access the SQL Server it is supposed to create the database on. It appears to just spin in place.

I think I saw someone suggest doing something equivalent to splitting the script into 650 separate SQL scripts? That wouldn't be managable.

We are running on Version 9.0. Any recommendations?

Thanks,
Rob
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Running Large SQL Scripts

Hi Rob,

It is not necessary to split your SQL script file in multiple scripts files unless you use multiple SQL Statement separators.
You can access this thread where it is explained in what cases the division of the script is necessary in several files considering the used SQL statement separator.

If you still have difficulties in using the SQL feature, can you send us the aip project and the SQL Script?
You can upload it to an online location for example a Dropbox solution.
If these options don't work for you, please contact us via e-mail (support at advancedinstaller dot com) so we can provide the ftp details to one of our servers.

Please note : do not send or post the project with confidential settings of hostname, user or password types, but only the working sql script.

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
visualsi
Posts: 40
Joined: Fri Oct 14, 2011 4:16 pm

Re: Running Large SQL Scripts

Hi,

We already have delimiters (separators) in between just about every statement in the script and have tested the script independently. It does take a few minutes to execute in SSMS, but it does work correctly.

Thanks,
Rob

Return to “Common Problems”