Skip to content

[BUG] sys.dm_xe_session_targets vs sys.dm_xe_database_session_targets in Azure SQL Database #648

@vpnicholls

Description

@vpnicholls

Component

Lite

Performance Monitor Version

2.3.0

SQL Server Version

Microsoft SQL Azure (RTM) - 12.0.2000.8 Feb 7 2026 14:31:25 Copyright (C) 2025 Microsoft Corporation

Windows Version

Windows 11 Enterprise 23H2

Describe the Bug

Logs show:

2026-03-20 14:48:45.176 [ERROR] [Collector] [] deadlocks SQL Error #208: Invalid object name 'sys.dm_xe_session_targets'.
2026-03-20 14:48:45.176 [ERROR] [RemoteCollectorService] Collector 'deadlocks' SQL error #208 for server '' | SqlException: Invalid object name 'sys.dm_xe_session_targets'.

In Azure SQL Database, the XE sessions are created at the database level rather than the instance/server level.

I can see that the XE sessions have already been created successfully. But it seems that the application cannot access the sessions.

The logs show the application is trying to access sys.dm_xe_session_targets. However, the database-level EE sessions are in:

sys.dm_xe_database_session_targets

Steps to Reproduce

  1. In Azure SQL Database, generate a blocked session.
  2. For the Azure SQL Database, navigate to Blocking > Blocked Process Report, verify that no report is generated.
  3. Navigate to logs, search for "blocked_process_report SQL Error"

Expected Behavior

  1. The XE session records the blocked process.
  2. The blocked process report can be retrieved through Performance Monitor Lite.

Actual Behavior

  1. Blocked process report is not available.
  2. Invalid object error is written to logs.

Error Messages / Log Output

2026-03-20 14:48:45.176 [ERROR] [Collector]   [<Azure SQL Database name masked by user>] deadlocks SQL Error #208: Invalid object name 'sys.dm_xe_session_targets'.
2026-03-20 14:48:45.176 [ERROR] [RemoteCollectorService] Collector 'deadlocks' SQL error #208 for server '<Azure SQL Database name masked by user>' | SqlException: Invalid object name 'sys.dm_xe_session_targets'.

Screenshots

Image

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions