sp_who2, the life of a lock…
Locks are a incredible resource in a RDMS, but a nightmare where concurrency is high and lock retention is time consuming. SQL Server let sysdba exploring locks using sp_who2 stored procedure. EXEC sp_who2 return the list of active sessions and some information related to them, e.g. the related locks (who blocks and who is blocked). ...