extended events blocked process report missing from sys.dm_xe_objects

后端 未结 1 806
余生分开走
余生分开走 2021-01-29 03:44

Trying to create SERVER EVENT SESSION to capture blocked_process_report & xml_deadlock_report events to a file for later analysis with the following statement;



        
相关标签:
1条回答
  • 2021-01-29 04:29

    Unfortunately, the blocked_process_report was added as a traceable extended event in SQL Server 2012.

    Since the extended events wizard(s) weren't added until SQL Server 2012, I would use the following query to view the available extended events:

    SELECT *
    FROM sys.dm_xe_objects AS Events
    WHERE Events.object_type = 'event' AND Events.name LIKE '%blocked%'
    ORDER BY Events.name;
    

    Or even better read this EXCEPTIONALLY good article by Jonathan Kehayias.

    0 讨论(0)
提交回复
热议问题