MS SQL Server - Script length

Got a problem you cannot solve? Try here.
AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

MS SQL Server - Script length

Postby AdrianGray » Sun Aug 03, 2014 7:18 pm

Is there a limit to the number of lines you can load into the script area. Our current script is around 43,000 lines which is throwing an error. I can copy and paste the script from notepad, however the "Load Script" button does not import it. Once inserted, when I build and run the project, I get a "Unable to load plug-in library. Please rebuild your project..." error message even though the same call with a smaller script ran successfully just prior. Thanks, Adrian.

PS Is there a way I can get InstallAware to launch a script (passing the login parameters) without having to paste it in the script area. This installer will be run in several environments, with the SQL Authentication details being read from a config file in each case.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MS SQL Server - Script length

Postby FrancescoT » Mon Aug 04, 2014 9:29 am

Dear Adrian,

I suggest you to use the "sqlcmd Utility" in such cases.
You run a call to SQLCMD using Run Program command.

http://technet.microsoft.com/en-us/library/ms165702(v=sql.105).aspx

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

Re: MS SQL Server - Script length

Postby AdrianGray » Thu Aug 07, 2014 3:42 am

Thanks, working well now.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MS SQL Server - Script length

Postby FrancescoT » Thu Aug 07, 2014 4:47 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 232 guests