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:
- Run the sp_iqtransaction procedure.
- Find the transaction identifier in the output of sp_iqtransaction.
- Look for the name of the user in the same row of output.