Hi salilsingh-9961 •,
Thanks for posting this question in Micrsoft Q&A forum.
As I understand, you want to see deadlock information in Azure SQL Database.
Deadlock graphs are a rich source of information regarding the processes and locks involved in a deadlock. To collect deadlock graphs with Extended Events (XEvents) in Azure SQL Database, capture the sqlserver.database_xml_deadlock_report
event.
If you have set up an XEvents session to collect deadlocks and a deadlock has occurred after the session was started, you can view an interactive graphic display of the deadlock graph as well as the XML for the deadlock graph.
Viewing a deadlock graph in XML format allows you to copy the inputbuffer
of Transact-SQL statements involved in the deadlock. You may also prefer to analyze deadlocks in a text-based format.
If you have used a Transact-SQL query to return deadlock graph information, to view the deadlock graph XML, select the value in the deadlock_xml
column from any row to open the deadlock graph's XML in a new window in SSMS.
To save the deadlock graph as an XML file:
- Select File and Save As....
- Leave the Save as type value as the default XML Files (*.xml)
- Set the File name to the name of your choice.
- Select Save.
Other Links:
https://www.sqlshack.com/monitoring-sql-server-deadlocks-using-the-system_health-extended-event/
Please let us know if this helps or if you have further queries.
Awaiting your reply. Thanks