PDA

Click to See Complete Forum and Search --> : SQL Server Table Lock


tomtan
Aug 14th, 2000, 03:21 AM
Hi,

Anyone knows how to check whether a table is being lock by other users?

If a user uses this query:

BEGIN TRANSACTION
UPDATE Table WITH(HOLDLOCK) SET Field = 'Test'

How to know whether that table is Locked or not?

Please help. Thanks

JHausmann
Aug 15th, 2000, 01:42 PM
What DBMS are you using?

tomtan
Aug 15th, 2000, 08:35 PM
I'm using SQL Server 7.0.

Clunietp
Aug 15th, 2000, 11:00 PM
check out Tablock