【问题标题】:how to retrieve the names of servers that i can connect to..?如何检索我可以连接到的服务器的名称..?
【发布时间】:2010-07-03 09:06:03
【问题描述】:

我的系统已通过 LAN 连接..

总共连接了四个系统。以及所有安装了 MS SQL 服务器的系统。

现在我需要检索它 - 我可以连接到的所有服务器..?

服务器名称 - 用于连接字符串...!!

谢谢'

【问题讨论】:

    标签: c# sql-server vb.net


    【解决方案1】:

    【讨论】:

      【解决方案2】:
      SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance;
      System.Data.DataTable table = instance.GetDataSources();
      

      查看此开源项目了解更多信息:http://dataconnectionsuite.codeplex.com/

      【讨论】:

        猜你喜欢
        • 2012-11-24
        • 2011-09-26
        • 1970-01-01
        • 2019-04-04
        • 1970-01-01
        • 1970-01-01
        • 2021-03-21
        • 1970-01-01
        • 2021-05-21
        相关资源
        最近更新 更多