ODBC Connect: timeout exceeded - 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!

iturner100
Posts: 1
Joined: Tue May 17, 2011 12:36 am

ODBC Connect: timeout exceeded

Hi,

I'm trying to run the ShowDatabases custom action to list the databases available during the install, but have been experiencing problems with ODBC - specifically I'm getting an "ODBC Connect: timeout exceeded" error being thrown in certain circumstances.

I'm setting the properties as follows:

ODBC_RES_PROP: SQL Server
SqlTrustedConnection: 1

However, on some machines ShowDatabases action will only work if the SERVER_PROP is set to (local) and on others it only works if it is set to localhost. When it doesn't work I get the ODBC Connection: timeout exceeded error.

It seems odd that the various machines are not behaving consistently. I'm sure there is a simple explanation that someone here can point me in the direction of. I've attached a really simple aip file that I have been using to test this issue, if that helps. Have I missed anything out?

Cheers
Ian
Attachments
OdbcHelper.aip
(15.2 KiB) Downloaded 387 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: ODBC Connect: timeout exceeded

Hello Ian and welcome to the Advanced Installer Forums,

Everything seems to be set correctly in your project. The databases should be listed on every machine if the server is set to either (local) or localhost.

For testing purposes you can also use the sample project from this article and see if the problem persists.

You can also try to assign SERVER_PROP with the ComputerName Windows Installer property which will be automatically resolved to the computer name at install time. You can do this by adding a "SetProperty" init event on the ConnectionDialog from your project:
published event configuration.jpg
published event configuration.jpg (5.14 KiB) Viewed 5558 times
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”