开发者

How to find SQL Servers Located in "Relative" Domains

开发者 https://www.devze.com 2022-12-08 19:26 出处:网络
I want to find programatically (with C# code) ALL the SQL servers in relative domains - \"brothers\", \"sons\" or \"father\" domain.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消