MsSQL 查看当前连接数

T-SQL:

select hostname,count(*) hostconncount from master.dbo.sysprocesses
group by hostname order by count(*) desc