Browsing for SQL Server Doesn't show Instances - 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!

davidhomer
Posts: 38
Joined: Fri Oct 23, 2009 2:39 pm

Browsing for SQL Server Doesn't show Instances

Hello,

Following the "How to show the available databases from an SQL Server?" section of the documentation and using the sample code I can get everything to work however the combobox doesn't seem to show any instances when it should at least show the local machines instance localhost\sqlexpress.

The [SqlServerBrowseMethod] is set to 2 so I would expect things like ServerName\InstanceName to show in the combobox but I only get Servername?

I've also tried SqlServerBrowseMethod set to 1 but it doesn't seem to make a difference.

Any suggestions?


Thanks,


Dave
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Browsing for SQL Server Doesn't show Instances

Hi,

In the first case please make sure that "SQL Server Browser service" is running. If this service is not running then the information you desire will not be available.

Here are other possible reasons that could make the instances not to appear:

-- UDP port 1434 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;

An alternative would be for you to use the "osql.exe" tool to list the locally configured servers and the names
of the servers broadcasting on the network with the following parameter:

Code: Select all

-L
Let me know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”