• SQLSalas (3/5/2013)


    I am seeing this same issue. I was trying to evaluate to make a switch from using Event Notification and going through Extended Events due to the "multiple-victim" scenario that seems to be happening in our environment. However, I don't get the same amount of deadlocks and the last deadlock in the extended events happened more than a day ago.

    It seems that the scenario you are seeing is the same that I am facing right now, have you ever find out what could the issue be?

    Thanks a lot!

    Still no luck - I'm thinking of opening a case with MS on this.

    Here is a similar query with the same issue:

    --https://www.simple-talk.com/sql/database-administration/handling-deadlocks-in-sql-server/

    select

    DeadlockGraph

    ,[DbId] = DeadlockGraph.value ( '(/deadlock/resource-list//@dbid)[1]', 'int' )

    ,[DbName] = DB_NAME ( DeadlockGraph.value ( '(/deadlock/resource-list//@dbid)[1]', 'int' ) )

    ,[LastTranStarted] = DeadlockGraph.value ( '(/deadlock/process-list/process/@lasttranstarted)[1]', 'datetime' )

    from

    (

    SELECT

    CAST ( event_data.value ( '(event/data/value)[1]', 'varchar(max)' ) AS XML ) AS DeadlockGraph

    FROM

    (

    SELECT

    XEvent.query('.') AS event_data

    FROM

    ( -- Cast the target_data to XML

    SELECT

    CAST( st.target_data AS XML ) AS TargetData

    FROM

    sys.dm_xe_session_targets st

    JOIN

    sys.dm_xe_sessions s

    ON

    s.[address] = st.event_session_address

    WHERE

    name = 'system_health'

    AND target_name = 'ring_buffer'

    ) AS Data

    CROSS APPLY-- Split out the Event Nodes

    TargetData.nodes ( 'RingBufferTarget/event[@name="xml_deadlock_report"]' ) AS XEventData ( XEvent )

    ) AS tab ( event_data )

    ) AS A

    ORDER BY [LastTranStarted];

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]