Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Find list of all the server and DB names using C#.  (Read 4311 times)

0 Members and 1 Guest are viewing this topic.

d5

  • Guest
Find list of all the server and DB names using C#.
« 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