SQL SERVER Browse -> displayed value - Advanced Installer Community
SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

SQL SERVER Browse -> displayed value

Hi AI-Team,
I have managed to add a listbox which shows the network Microsoft SQL Servers "http://www.advancedinstaller.com/user-g ... rvers.html".
Now I want the user to choose one and then make a check if credentials are Ok.
The proposed check looks like the following:
Driver=[\{]SQL Server[\}];Server=[SERVERNAME_PROP],[PORT_PROP];Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];

unfortunately the found SQL-Server is displayed "(local)\Instance" instead of "SERVERNAME\instance", so if I pass the selected value to SERVERNAME_PROP the check won't work. Do I need to replace (local) with SERVERNAME to make this check or is there a more elegant way?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: SQL SERVER Browse -> displayed value

Hello,

When you are running the installation package on the same machine where the SQL Server is located, then the server name will be (local). When running the installation package on a machine where no SQL Server is installed, then the server name will be displayed, instead of (local).

By the way, can you please try to use the following connection string and let us know if the behaviour still persist?

Code: Select all

Driver=SQL Server;Server=[SERVERNAME_PROP];Port=[PORT_PROP];Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];
Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”