Results 1 to 4 of 4

Thread: SQL Server Table Lock

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    39

    Question

    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
    ThOmaS TaN

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    What DBMS are you using?

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    39
    I'm using SQL Server 7.0.
    ThOmaS TaN

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    check out Tablock

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width