Format:
Recent snippets matching tags of locks
declare @tablevar table(spid int, dbid int, objid int, indid int, [type] varchar(64), resource varchar(64), mode varchar(64), status varchar(64)) insert into @tablevar exec sp_lock select spid, dbid, ObjId, object_name( objid), IndId, [type], Resource, Mode, Status from @tablevar
86 Views
no comments
-- -- Dump object names for any locks currently waiting -- declare @tablevar table(spid int, dbid int, objid int, indid int, [type] varchar(64), resource varchar(64), mode varchar(64), status varchar(64)) insert into @tablevar exec sp_lock select object_name( objid) from @tablevar where status = 'WAIT'
75 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
