# How to get Deadlock Chain in SQL Server

**URL:** <https://community.dynatrace.com/t/how-to-get-deadlock-chain-in-sql-server/56450>\
**Category:** Open Q&A\
**Tags:** databases, sql\
**Created:** [July 15, 2026, 5:31am UTC](https://community.dynatrace.com/t/how-to-get-deadlock-chain-in-sql-server/56450 "2026-07-15T05:31:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepufrancis](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@deepufrancis](https://community.dynatrace.com/u/deepufrancis)\
**Post date:** [July 15, 2026, 5:31am UTC](https://community.dynatrace.com/t/how-to-get-deadlock-chain-in-sql-server/56450/1 "2026-07-15T05:31:51Z")

</div>

In the database Explorer table, it shows the occurrence of Deadlocks but how to narrow down to the source and victim queries. There is no option to drill down from the graph.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [July 15, 2026, 2:24pm UTC](https://community.dynatrace.com/t/how-to-get-deadlock-chain-in-sql-server/56450/2 "2026-07-15T14:24:45Z")

</div>

Based on the currently documented capabilities, the standard Dynatrace Microsoft SQL Server extension does not provide a native drill-down from the Deadlocks graph to identify the victim and other participating SQL queries.

The available sql-server.locks.deadlocks.count metric shows the occurrence and trend of deadlocks at the SQL Server instance level. The current extension does not indicate that the extension collects or exposes the deadlock XML, participating SQL statements, session IDs, or the transaction selected as the victim.

For Dynatrace SaaS, a possible workaround is to use Custom Extensions Creator to create a custom SQL Server query that reads the xml\_deadlock\_report events from SQL Server’s built-in system\_health Extended Events session. The query and output mapping should first be tested and validated in the target environment.

Microsoft documents that the deadlock XML contains:

victim-list: the process selected as the deadlock victim  
process-list: all processes involved, including their SQL details  
resource-list: the database resources involved in the deadlock

SQL Server deadlock guidance and sample query:

> **[Deadlocks Guide - SQL Server](https://learn.microsoft.com/en-us/sql/relational-databases/sql-server-deadlocks-guide?view=sql-server-ver17)**
>
> Learn about deadlocks in the SQL Server Database Engine.

Dynatrace Custom Extensions Creator:

> **[Extensions Creator](https://docs.dynatrace.com/docs/ingest-from/extensions/develop-your-extensions/custom-extensions-creator)**
>
> Use the Extensions Creator app to create custom extensions to ingest data into Dynatrace.
