View details on write intent locks using the sa_locks system
procedure.
- Run the sa_locks system procedure.
- View the lock_class column, which shows intent locks for tables and rows.
- Run the sp_iqlocks stored procedure to identify users who are
blocking other users from writing to a table. This procedure displays information
about locks currently held in the database, including the connection and user ID that
holds the lock, the table on which the lock is held, the type of lock, and a name to
identify the lock.