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!

skingswell
Posts: 29
Joined: Tue Nov 29, 2016 2:24 pm

Test Sql Connection - Nothing Happens??

I am using the TestODBCConnection Custom action to test the credentials of the SQL Server connection but I cannot get this working properly

I have a dialog which browses the SQL servers on the network and an option for the user to select how they wish to connect (Trusted/UserName & Password). Before progressing to the next dialog which displays the databases for the selected SQL server I want to test that the user credentials are valid. I have added the custom action to TestODBCConnection (see attached example of the configuration).

When I Click on 'Test Sql Connection' nothing happens. However when I progress to the next dialog (SQL Databases) and then select back the SQL Connection Result displays 'Connection Successful'

To be able to perform a 'Test Sql Connection' must the user first select a database? What am I doing wrong? Can I test the connection without specifying a database?
skingswell
Posts: 29
Joined: Tue Nov 29, 2016 2:24 pm

Re: Test Sql Connection - Nothing Happens??

Test SQL Connection.PNG
Test SQL Connection.PNG (14.68 KiB) Viewed 3853 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Test Sql Connection - Nothing Happens??

Hello,

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
skingswell
Posts: 29
Joined: Tue Nov 29, 2016 2:24 pm

Re: Test Sql Connection - Nothing Happens??

Hi Daniel

Many thanks for offering to look at the project.

I managed to get it working using the SQLServerConnectionDlg instead of doing it myself. Seems to be working :-)

Regards
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Test Sql Connection - Nothing Happens??

You're always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”