Conditions for running 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!

eian
Posts: 2
Joined: Wed Nov 17, 2010 8:32 pm

Conditions for running SQL Scripts

Hello I’m a newbie to Advanced Installer. Have searched your help file but I can’t quite get a grasp on this:

Is it possible in the SQL Scripts section to have SQL Script running by hardcoding a SQL2008 connection string, and not setting anything in the ODBC section like Drivers or Datasources?
eian
Posts: 2
Joined: Wed Nov 17, 2010 8:32 pm

Re: Conditions for running SQL Scripts

Yes you can.

Try this:
Driver={SQL Server Native Client 10.0};Server=(local)\yourinstancehere;Port=1433;Uid=sa;Pwd=sapwdhere;Database=dbnamehere;

Happy installing :-)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Conditions for running SQL Scripts

Hi,

Please note that explicit connection strings can be set only for Custom SQL connections. Predefined connections generate the string based on the UI options.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”