Retrieves information about deadlocks from an internal buffer created by the database server.
|Column name||Data type||Description|
|snapshotId||bigint||The deadlock instance (all rows pertaining to a particular deadlock have the same ID).|
|snapshotAt||TIMESTAMP||The time when the deadlock occurred.|
|waiter||INT||The connection handle of the waiting connection.|
|who||VARCHAR(128)||The user ID associated with the connection that is waiting.|
The command being executed by the waiting connection.
This information is only available if you have turned on capturing of the most recently-prepared SQL statement by specifying the -zl option on the database server command line or have turned this feature on using the sa_server_option system procedure.
|wait_on||bigint||The name of the lock being waited on.|
|owner||INT||The connection handle of the connection owning the lock being waited on.|
When the log_deadlocks option is set to On, the database server logs information about deadlocks in an internal buffer. You can view the information in the log using the sa_report_deadlocks system procedure.
DBA authority required