Comments on: How To: Troubleshoot Deadlocks In Windows Azure SQL Database (WASD) https://thomaslarock.com/2013/05/how-to-troubleshoot-deadlocks-in-windows-azure-sql-database-wasd/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Thu, 13 Oct 2016 14:02:00 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: ThomasLaRock https://thomaslarock.com/2013/05/how-to-troubleshoot-deadlocks-in-windows-azure-sql-database-wasd/#comment-15236 Thu, 13 Oct 2016 14:02:00 +0000 http://thomaslarock.com/?p=10493#comment-15236 In reply to Phil Nachreiner [MSFT].

Thanks Phil, much appreciated!

]]>
By: Phil Nachreiner [MSFT] https://thomaslarock.com/2013/05/how-to-troubleshoot-deadlocks-in-windows-azure-sql-database-wasd/#comment-15232 Wed, 12 Oct 2016 18:29:00 +0000 http://thomaslarock.com/?p=10493#comment-15232 In reply to Scott W.

For Azure SQL Database v12 you can grab the deadlock events using the following query:

WITH CTE AS (
SELECT CAST(event_data AS XML) AS [target_data_XML]
FROM sys.fn_xe_telemetry_blob_target_read_file(‘dl’, null, null, null)
)
SELECT target_data_XML.value(‘(/event/@timestamp)[1]’, ‘DateTime2’) AS Timestamp,
target_data_XML.query(‘/event/data[@name=”xml_report”]/value/deadlock’) AS deadlock_xml,
target_data_XML.query(‘/event/data[@name=”database_name”]/value’).value(‘(/value)[1]’, ‘nvarchar(100)’) AS db_name
FROM CTE

Source: https://msdn.microsoft.com/en-us/library/dn270018.aspx

]]>
By: ThomasLaRock https://thomaslarock.com/2013/05/how-to-troubleshoot-deadlocks-in-windows-azure-sql-database-wasd/#comment-14501 Tue, 21 Jun 2016 15:47:00 +0000 http://thomaslarock.com/?p=10493#comment-14501 In reply to Scott W.

Thanks!

]]>
By: Scott W https://thomaslarock.com/2013/05/how-to-troubleshoot-deadlocks-in-windows-azure-sql-database-wasd/#comment-14169 Sat, 14 May 2016 23:34:00 +0000 http://thomaslarock.com/?p=10493#comment-14169 Could do with an update for v12 as additional_data is always null

]]>
By: ThomasLaRock https://thomaslarock.com/2013/05/how-to-troubleshoot-deadlocks-in-windows-azure-sql-database-wasd/#comment-9853 Wed, 09 Oct 2013 02:20:00 +0000 http://thomaslarock.com/?p=10493#comment-9853 In reply to twomm.

Thanks!

]]>
By: twomm https://thomaslarock.com/2013/05/how-to-troubleshoot-deadlocks-in-windows-azure-sql-database-wasd/#comment-9840 Mon, 07 Oct 2013 09:40:00 +0000 http://thomaslarock.com/?p=10493#comment-9840 great addition, however you have a little typo there – it is xdl instead of rdl

]]>
By: Joe Porter https://thomaslarock.com/2013/05/how-to-troubleshoot-deadlocks-in-windows-azure-sql-database-wasd/#comment-8931 Fri, 12 Jul 2013 07:08:00 +0000 http://thomaslarock.com/?p=10493#comment-8931 Great article, there’s also a nice one on database deadlocks over here:

http://www.programmerinterview.com/index.php/database-sql/database-deadlock/

]]>