Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 3.32 KB

File metadata and controls

54 lines (43 loc) · 3.32 KB
title sys.database_event_session_events
description The sys.database_event_session_events dynamic management view (DMV) returns a row for each event in a database-scoped event session.
author rwestMSFT
ms.author randolphwest
ms.date 07/29/2025
ms.service sql
ms.subservice system-objects
ms.topic reference
ms.custom
ignite-2025
dev_langs
TSQL
monikerRange =azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb

sys.database_event_session_events

[!INCLUDE sqlserver2016-asdb-asdbmi-fabricsqldb]

The sys.database_event_session_events dynamic management view (DMV) returns a row for each event in a database-scoped event session. For information on events in active database-scoped sessions, see sys.dm_xe_database_session_events.

Column name Data type Description
event_session_id int The ID of the event session. Is not nullable.
event_id int The ID of the event. This ID is unique within an event session object. Is not nullable.
name sysname The name of the event. Is not nullable.
package sysname The name of the event package that contains the event. Is not nullable.
module sysname The name of the module that contains the event. Is not nullable.
predicate nvarchar(3000) The predicate expression that is applied to the event. Is nullable.
predicate_xml nvarchar(3000) The XML predicate expression that is applied to the event. Is nullable.

Permissions

Requires the VIEW DATABASE PERFORMANCE STATE permission.

Remarks

This view has the following relationship cardinalities.

From To Relationship
sys.database_event_session_events.event_session_id sys.database_event_sessions.event_session_id Many to one

Related content

Learn more about related concepts in the following articles: