« Home | We're off to Germany » | Tricky Dynamic Controls in ASP.NET » | Handy Web Reference Links » | css Zen Garden: The Beauty in CSS Design » | Onbeforeunload throwing errors in IE - coding arou... » | Ajax Safari Update » | An AJAX Safari... » 

Friday, November 18, 2005 

Viewing the Locks in MS-SQL

select so.name, sli.*, sp.* 
from 
    sysobjects as so 
    join master..syslockinfo as sli on sli.rsc_objid = so.id
    join master..sysprocesses as sp on sp.spid = sli.req_spid
where xtype = 'U'
System tables reference:

Labels: