摘要:
查询服务器登录个数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 阅读全文
摘要:
--查找被阻塞进程Select * from master..sysprocesses where dbid=9 and blocked > 0--查找阻塞头进程select * from master..sysprocesses p where dbid=9 and blocked<=0 and ... 阅读全文