SQL Locks

  • Hello Masters,

    How can we count the total number of locks in sql server 2005\2008 ?

    Is there any query\options to check it ?

  • Why? What is that total number going to tell you?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I got an alert "Total_Locks>=4000 " !!

    I dont know how much it should be.

    I tried sp_lock and can see around 3853 rows. But dont know whether that is the number of locks.

    Is there anyway I can see the total number locks and what type of locks there are ?

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply