SELECT COUNT(*) Qty FROM (
SELECT host_name
FROM sys.dm_exec_sessions
WHERE ISNULL(host_name,'')<>''
GROUP BY host_name) t
转载于:https://www.cnblogs.com/hanmc/p/4240387.html
SELECT COUNT(*) Qty FROM (
SELECT host_name
FROM sys.dm_exec_sessions
WHERE ISNULL(host_name,'')<>''
GROUP BY host_name) t
转载于:https://www.cnblogs.com/hanmc/p/4240387.html