查询服务器登录个数
select host_name,login_name, count(session_id) FROM sys.dm_exec_sessions where database_id=9group by host_name, login_nameorder by host_name