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)
时间: 2024-08-11 01:25:41