SQL Server Performance

Identify The First Lock Process in SQL Server Activity Monitor

Discussion in 'SQL Server 2008 General Developer Questions' started by seemun, Dec 15, 2009.

  1. seemun New Member

    Hi, Can I check how to identify the 1st lock process when there is more than 50 process in the Activity Monitor locking, it is very time consume to check which one is the 1st process to cause the locking. Do you have any idea?
    rgds, seemun
  2. Luis Martin Moderator

    You can use sp_who2 active and look ID process to find the first one.
  3. Adriaan New Member

    Look up sys.dm_tran_locks in Books Online (assuming the name hasn't changed since SQL 2005) and work from there.

Share This Page