Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find available SQL Server on local network

Status
Not open for further replies.

ashishraj14

Programmer
Joined
Mar 1, 2005
Messages
92
Location
AU
Using VB.NET how can I find all available SQL Server on a local network and list all the databases in each server.
 
this is one that comes back from time to time and can be easily found with a search on google or this forum.

The only problem is that most solutions only work when service pack 3 is installed on the server.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
I did some searching and found this that will help

thread796-813241
thread796-844885

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
thanks chrissie, i did some search but couldn't find anything. thanks for the links
 
If you did a search and didn't find anything you may want to look at the keywords you are using as searching for "SQL Server Network" found both the links that chrissie provided.

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
I am getting the following error

QueryInterface for interface SQLDMO.NameList failed.

???
 
additional information

I am running it on WIN2k
 
Installing latest SP fixed the problem.

Have another issue though

I installed sql server on stand alone machine, running XP. The code doesn’t generate any error, but doesn’t show the instance of sql server installed on it. Does the method ListAvailableSQLServers scan the network for instances of sql server, not the local machine?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top