Computer Hope

Software => Computer programming => Topic started by: d5 on March 09, 2006, 11:30:52 PM

Title: Find list of all the server and DB names using C#.
Post by: d5 on March 09, 2006, 11:30:52 PM
 :-?

Hi

I need to find the list of all the servers and the database names in SQL Server but using C#.net.

I am writing an application using C#.Net. I need to find all the servers and DB's so that I could add them to a list box to be selected.

The names of servers and databases should be in Enterprise Manager. But I need a piece of code in C# to list all of them. I will than take them and add them to a combo box in the interface.

Please Help