Test Trusted 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!

kkinsella
Posts: 4
Joined: Thu Jun 14, 2012 12:30 pm

Test Trusted SQL Connection

Hi I am havign a few issues setting up a test button on the SQLConnectionDlg Dialog box that tests the SQL connection. My SQL connection in the SQL scripts and the install are all set to use Trusted Connection via the [LogonUser] and I need the test button to do the same when it tests the connection to the SQL Server.
Is anyone able to provide a step by step set of instruction son how to configre this action please? As I cannot get it work.
Many Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Test Trusted SQL Connection

Hello,

In order to achieve what you want you can use a connection string like this:

Code: Select all

Driver=[\{][ODBC_RES_PROP][\}];Server=[SERVER_PROP];Port=[PORT_PROP];Uid=[LogonUser];Trusted_Connection=yes;
Also, please take a look on the following articles:
- "Set SQL connection authorization type"
- "Test SQL Connection"

Let us know if this helped.

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

Return to “Common Problems”