How to find the databases on a server
- From: Dom <dolivastro@xxxxxxxxx>
- Date: Tue, 25 Sep 2007 10:45:20 -0700
I'm trying to write an all-purpose program that will:
1. list all the servers on the network.
2. list all the databases on any one server once it is clicked.
3. list all the tables in a database once it is clicked.
4. list all the columns in a table once it is clicked.
The first step I can do with SqlDataSourceEnumerator. But I get only
the names of the servers, not the instance names.
My intention was to call SqlConnection.Open() on each server returned
by the Enumerator, but this fails, apparently because the enumerator
returns the name "CASSIUS" and not "CASSIUS\SQLEXPRESS".
How can I do what I want?
.
- Follow-Ups:
- Re: How to find the databases on a server
- From: William Vaughn
- Re: How to find the databases on a server
- From: Dom
- Re: How to find the databases on a server
- Prev by Date: Re: do release builds have the same amount of info in exceptions? e.g. will exceptions cought in release builds contain stack trace etc.?
- Next by Date: Jet database engine could not find the object 'Expr...'
- Previous by thread: do release builds have the same amount of info in exceptions? e.g. will exceptions cought in release builds contain stack trace etc.?
- Next by thread: Re: How to find the databases on a server
- Index(es):
Relevant Pages
|