How to test for SQL 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!

jfuhr
Posts: 41
Joined: Wed Mar 19, 2008 4:52 pm

How to test for SQL Connection

I followed the steps in this article: http://www.advancedinstaller.com/user-g ... ction.html

on testing the server and user credentials for MS SQL login.

However, I'm getting the following message when entering valid or invalid credentials:

[SQLDriverConnect]{SQL_STATE:IM002}[Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified.

This is the property string that I'm setting:

Driver=[\{][ODBC_RES_PROP][\}];Server=[SERVER_PROP];Port=[PORT_PROP];Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];

My project is not installing an ODBC driver because I'm connecting to a SQL Server.
jfuhr
Posts: 41
Joined: Wed Mar 19, 2008 4:52 pm

Re: How to test for SQL Connection

By replacing the Driver portion with this: Driver={SQL Native Client};

It now works.

Return to “Common Problems”