to find locked tables in SQL Server 2005 ,
sp_lock
and use Object_Name() to find out name of the table,
SELECT Object_Name(ObjectID)
Published under: SQL Server Tips · · · ·
This is a valid method for SQL 2000, however, sp_lock has been marked for deprecation since SQL 2005. The alternate is to use the DMV - sys.dmtran_locks