Problem in showing Server in dropdown of SqlConnectionDlg - 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!

viral
Posts: 22
Joined: Thu Jun 23, 2011 9:07 am

Problem in showing Server in dropdown of SqlConnectionDlg

Hello,

Problem No : 1 .We have created an Installer in which we have used SqlConnectionDlg and given 1 as argument value for SqlBrowseMethod. Now when we run this setup on Windows 7 and Windows server 2003, it shows all server names in dropdown. But when we run same Exe in Windows server 2008 R2, it doesn't show any of servers available in network.

Problem No : 2 .We have created an Installer in which we have used SqlConnectionDlg and given 2 as argument value for SqlBrowseMethod. Now when we run this setup on Windows 7 and Windows server 2003, it shows all server names in dropdown but it also shows Cluster's information with the name of server.Please tell me how to remove Cluster's information from Server Name. For more information Please refer to attached Image.


THANKS,
VIRAL
Attachments
Database_DropDown.png
Database_DropDown.png (36.17 KiB) Viewed 1841 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem in showing Server in dropdown of SqlConnectionDl

Hi Viral,
Problem No : 1 .
There are many reasons why this browse method doesn't work.
For example:
  • UDP port might be blocked by a firewall;
  • Instances that are not up and running do not respond to the discovery broadcast;
  • Instances might respond after the timeout, which will exclude there response from the list;
  • Instances might not be listening on the correct protocol, so will never receive the discovery broadcast;
  • The HideInstance flag might be set for some instances;
  • Network infrastructure, especially routers, might limit the effect/visibility of the broadcast, since most routers are configured not to relay broadcast requests to the other side of the router;
To get past this we recommend you use the other browse method that works.
Problem No : 2 .
This is happening for the reason explained in this article.
If you need only the server name you can parse the information from the SqlServerBrowseOutput property using your own custom action and repopulate another ComboBox or ListBox or other controls with those values.
To get you started, here is an article that has a sample .VBS to parse the CustomActionData property with the "|" delimiter. You can adapt it for commas and use it in your project.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”