tags:

views:

41

answers:

1

Hi, I want to find programatically (with C# code) ALL the SQL servers in relative domains - "brothers", "sons" or "father" domain.

It can be done with WMI queries for each domain in the global catalog - but maybe you know about simpler way??

Thank you in advance.

A: 

You can use:

SqlDataSourceEnumerator.Instance.GetDataSources()

which return a DataTable with SQL Server instances available.

Wael Dalloul
It finds the SQL Servers in the same domain only. I want to find also servers on another domains. Thanks anyway.