查看Sql Server当前的并发连接数


select   count(*)   from   master.dbo.sysprocesses   where   dbid=db_id()

select
count(*)
from master..sysprocesses 
where hostname<>'' and dbid=db_id('db')

原文地址:https://www.cnblogs.com/Spring/p/1093324.html