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.
You can use:
SqlDataSourceEnumerator.Instance.GetDataSources()
which return a DataTable with SQL Server instances available.
精彩评论