SQL Server2008进程堵塞处理方法

进程堵塞处理方法:

select * from sys.sysprocesses where blocked <>0 and DB_NAME(dbid)='GSHCPDB'   ##查询堵塞进程

dbcc inputbuffer(74)

 

select * from sys.sysprocesses where spid = 74

kill 74     ##删除堵塞进程

SELECT A1."WorkID",A1."DeptID",A1."AddType",A1."WDate",A1."STime",A1."ETime",A1."AddStart",A1."AddEnd",A1."Hours",A1."Note",A1."IsOverDay",A1."SEG_SEGMENT_NO",A1."LUser",A1."LDate",A1."CUser",A1."CDate",A1."Grup" FROM "DBO"."HCP_MONTH_ADDHOUR" A1

你可能感兴趣的:(SQL Server2008进程堵塞处理方法)