G
Guest
Hi All,
I need to retrieve a list of SQL servers that are running on a local machine.
I have tried using:
SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance;
System.Data.DataTable table = instance.GetDataSources();
but have found that it returns servers on the entire network not on the
local machine.
Is there some other C# API that can be used to get a list of SQL servers
that are running on the local machine?
Thanks in advance for any help,
Scott
I need to retrieve a list of SQL servers that are running on a local machine.
I have tried using:
SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance;
System.Data.DataTable table = instance.GetDataSources();
but have found that it returns servers on the entire network not on the
local machine.
Is there some other C# API that can be used to get a list of SQL servers
that are running on the local machine?
Thanks in advance for any help,
Scott