RE: How to find available SQL Server on local network
- From: "Jakob Christensen" <jch@xxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 01:34:11 -0700
You can do this using SQL-DMO. Add a reference to sqldmo.dll and sqldmo.rll
to use SQL-DMO. The Application object of SQL-DMO has a ListAvailableServers
method which will give you all SQL Servers on the network (if you are running
Windows 2000 and up).
You can also connect to an SQL Server instance and enumerate all objects for
that server (using the SqlServer object).
Links:
http://support.microsoft.com/default.aspx?scid=kb;en-us;287737
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sqldmo/dmoref_con03_8q44.asp
Of course, the code will be a bit different in VB.net.
HTH, Jakob.
"Job Lot" wrote:
> Using VB.NET how can I find all available SQL Server on a local network and
> list all the databases in each server.
>
> Thanks
.
- References:
- How to find available SQL Server on local network
- From: Job Lot
- How to find available SQL Server on local network
- Prev by Date: Re: Easiest database to use (free)?
- Next by Date: multiple sort criterias for any class; arraylist performance
- Previous by thread: How to find available SQL Server on local network
- Next by thread: multiple sort criterias for any class; arraylist performance
- Index(es):
Relevant Pages
|