RE: How to find available SQL Server on local network
- From: "Job Lot" <JobLot@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 1 May 2005 18:29:04 -0700
I am getting the following error when i run it on WIN2K
QueryInterface for interface SQLDMO.NameList failed???
"Jakob Christensen" wrote:
> 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
.
- Follow-Ups:
- RE: How to find available SQL Server on local network
- From: Jakob Christensen
- RE: How to find available SQL Server on local network
- Prev by Date: Tutorial for dotnet
- Next by Date: How to code Unicode strings in VB in dot net?
- Previous by thread: RE: How to find available SQL Server on local network
- Next by thread: RE: How to find available SQL Server on local network
- Index(es):
Relevant Pages
|