select dbname,status,cpu,physical_io, spid,hostname,cmd,loginame,stm t_start,stmt_end from sys.sysprocesses
inner join
(select database_id as dbid,name as dbname from sys.databases) q1
on sys.sysprocesses.dbid = q1.dbid where dbname ='DBNAME'
and status like 'sleeping%'
syntax : Kill spid column value
kill 55
No comments :
Post a Comment