开发者

How to find SQL Servers Located in "Relative" Domains

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜