如何使用 C# 连接到远程计算机并获取 sqlserver 实例?

发布于 2024-07-26 15:09:51 字数 197 浏览 2 评论 0原文

我如何连接到远程计算机并使用 smo 或任何东西获取本地实例。

使用 smo 我对本地实例执行了此操作,但我不知道远程实例如何

执行此操作。

(我的想法是连接到远程计算机并调用 EnumAvailableSqlServers(true))

你能给我一些想法来做到这一点吗???

提前致谢。

How can i connect to the remote machine and getting the local instances using smo or any thing.

using smo i did it for local instances but i dont know the same for remote instances how to

do this.

(My idea is connecting to the rmote computer and call the EnumAvailableSqlServers(true))

Can u give me ideas to do this???

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

£冰雨忧蓝° 2024-08-02 15:09:51

本文介绍如何检索本地网络上运行 MS SQL Server 的 PC 列表,并获取有关实例的信息,例如服务器名称、实例名称、版本和数据库。

定位本地网络上的 SQL Server 实例
http://www.codeproject.com/KB/database/locate_sql_servers.aspx

This article shows how to retrieve a list of PCs on the local network which are running MS SQL Server, and gets information about the instances, such as server name, instance name, version, and databases.

Locate SQL Server instances on the local network
http://www.codeproject.com/KB/database/locate_sql_servers.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文