select hostname,count(*) hostconncount from master.dbo.sysprocessesgroup by hostname order by count(*) desc 小记之。