經過sys.sysprocesses查詢線程來源

 

 

SELECT hostname,loginame,* FROM sys.sysprocesses;

SELECT count(*),hostname FROM sys.sysprocesses where cmd='AWAITING COMMAND' group by hostname;

SELECT count(*),hostname,loginame FROM sys.sysprocesses where cmd='AWAITING COMMAND' group by hostname,loginame;

SELECT hostname,loginame,* FROM sys.sysprocesses;

DBCC INPUTBUFFER(@@spid)
相關文章
相關標籤/搜索