Run SQL Script before ODBC connection - 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!

deamon32
Posts: 2
Joined: Wed Apr 20, 2011 2:21 am

Run SQL Script before ODBC connection

I am using Advanced Installer 8.1.1

Quick overview of what my installation does:

Install SQL Server 2005 Express (working)
Run a Script to add a new SQL user (working)
Run a Script to attach three databases (working)
Create two ODBC Data Source to two of the attached databases in the step above (Not working)

My issue as far as I can tell is that Advanced Installer tries to create the ODBC Data Source before running the SQL scripts Since the scripts attach the Databases needed for the ODBC Data Source I get the following error:
"Error Configurin ODBC data source: <DATABASENAME ODBC error 8: Invalid keyword-value pairs"

Is there any way to run the ODBC data soure after the SQL script?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Run SQL Script before ODBC connection

Hello and welcome to the Advanced Installer Forums,

The error message is usually shown when the Data Source attributes are not configured correctly. Here is thread which deals with a similar issue, perhaps it can help you find you have set wrong in the list control.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
deamon32
Posts: 2
Joined: Wed Apr 20, 2011 2:21 am

Re: Run SQL Script before ODBC connection

Thank you for that thread, it resolved my issue.

The problem was that I was specifying the LastUser, once that was removed it worked without any issues.

Return to “Common Problems”