SqlDataSourceEnumerator is a class in .net framework that gets the available instances of SQL Server within the local network.
DataTable dt = SqlDataSourceEnumerator.Instance.GetDataSources();
SqlDataSourceEnumerator.Instance.GetDataSources() returns a datatable with the available servers in the current network.
The DataTable returned as 4 colunms such as :-
- ServerName
- InstanceName
- IsClustered
- Version
Popularity: 1% [?]
Related posts:

January 7th, 2009
admin
Posted in
Tags: 
