
10-02-2006, 08:48 AM
|
 |
Contributor
|
|
Join Date: Oct 2002
Location: Ocala, Fl.
Posts: 597
|
|
Getting a list of SQL 2005 Servers and The Databases in them
|
I know it's poor form to use VB6 as a reference for .net/2005 questions, but I really don't know of any other way.
Back using VB 6 I was able to get a list of SQL Servers by using the
SQLDMO.NameList object, from there I could easily get the databases held in each server.
Is there a similar object or method of sql, sqlclient, etc I can use to do the same thing?
I need to detect running SQL Server 2005 databases and the databases attached to them. regardless of if the db is local or on a network, and do that via user interface (I need users to be able to select their databases on different servers from the same app without them knowing how to create their own connection string)
|
__________________
Plotting to take over the world since 1978
|