--检查锁语句
use master
declare @spid int;
declare @sql_handle binary(20);
set @spid = 91
SELECT @sql_handle = sql_handle
FROM sysprocesses As A with (nolock)
where spid = @spid
select text
from ::fn_get_sql(@sql_handle)
use master
declare @spid int;
declare @sql_handle binary(20);
set @spid = 91
SELECT @sql_handle = sql_handle
FROM sysprocesses As A with (nolock)
where spid = @spid
select text
from ::fn_get_sql(@sql_handle)