Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图一次在多个远程 SQL Server 上找到活动连接,而不通过 SSMS 建立与它们的连接。那可能吗?如果是,请帮忙。
我想在本地 SQL Server 的 SSMS 上查看这些连接信息。
一种方法是在本地实例上创建链接服务器,然后您可以在那里连接并通过四部分名称引用引用所有其他服务器,例如:
LinkedServerName.master.sys.dm_exec_connections
您还可以查看中央管理服务器/注册的服务器组;SSMS 提供了一些工具来按顺序对多个服务器运行相同的批处理。