SQL connection in Windows XP - 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!

jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

SQL connection in Windows XP

I have disabled the Windows XP firewall and tried to install my application that installs just fine on Vista, 7, server 2008 and server 2003. However, when I try to install in XP my SQL Server connection test fails with the error: Data source name was not found and no default driver specified. My connection string looks like this: Driver={SQL Native Client};Server=[SERVER_PROP];Port=1433;Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];

Any ideas?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: SQL connection in Windows XP

Hello,

We're not sure what the issue could be. Try using the predefined SQL connection instead of the custom one, and edit that one. Make sure the driver is correct, make sure the SQL Server is really listening on that port and make sure the user exists on that server and has the password you are inputting during installation.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Re: SQL connection in Windows XP

I have tried taking out the port number, using a static connection string (with and without the port number), a dynamic connection string, installing the native client for SQL Server and backward compatibility components and I always get the same error. Any ideas?
jfuhr
Posts: 41
Joined: Wed Mar 19, 2008 4:52 pm

Re: SQL connection in Windows XP

I am having the same problem after upgrading to 7.7.

Using the Test ODBC Connection, with the same parameters as the author, I am getting Data Source name not found error.

This was working previously.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: SQL connection in Windows XP

Hello,

Please send your .aip project file to support at advancedinstaller dot com so we can investigate.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Re: SQL connection in Windows XP

I got it. The way I have it set up, the computer that is installing the application needs to have SQL Server native client 9.0 installed. On this machine, I installed native client 10.0 thinking that it would work properly, but it does not. I have since included a search for native client 9.0 and added a custom launch condition that searches for the SQLNCLI.DLL. If it is found, the setup continues, if not, it fails and the user needs to install it.

Return to “Common Problems”