检测SQLSERVER 连接 IT

SELECT * FROM sys.dm_exec_sessions WHERE host_name IS NOT NULL

SP_WHO

原文地址:https://www.cnblogs.com/machaofast/p/2987426.html