Sql server name - 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!

goset
Posts: 8
Joined: Thu Sep 01, 2011 2:22 pm

Sql server name

When I have a combo box it only shows me the name of the server. I want the instance also.
Example
Server\Instance.
Is there a way of getting this or adding \instance to the end of what is returned?


goset
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Sql server name

Hi Goset,

More information can be shown by setting SqlServerBrowseMethod property to:

Code: Select all

2
This way the browsing mechanism will use ODBC Driver Manager. Please note that this method will show information with this form:

Code: Select all

ServerName\InstanceName;Clustered:No;Version:9.00.3042.00
There is no support for displaying only ServerName\InstanceName. If you want to customize the output a solution is to use a custom action to parse the strings and extract only what you need. You can then insert the information in custom controls.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”