Displaying Active Locks

An attempt to write to a table fails if another transaction holds a lock on that table.

To identify the user who has a table locked:

  1. Run the sp_iqtransaction procedure.
  2. Find the transaction identifier in the output of sp_iqtransaction.
  3. Look for the name of the user in the same row of output.