如何使用 C# 连接到远程计算机并获取 sqlserver 实例?
我如何连接到远程计算机并使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本文介绍如何检索本地网络上运行 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