Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 3.47 KB

File metadata and controls

52 lines (41 loc) · 3.47 KB
title sys.database_event_session_fields
description The sys.database_event_session_fields dynamic management view (DMV) returns a row for each customizable column that was explicitly set on events and targets 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_fields

[!INCLUDE sqlserver2016-asdb-asdbmi-fabricsqldb]

The sys.database_event_session_fields dynamic management view (DMV) returns a row for each customizable column that was explicitly set on events and targets in a database-scoped event session.

Column name Data type Description
event_session_id int The ID of the event session. Is not nullable.
object_id int The ID of the object this field is associated with. Is not nullable.
name sysname The name of the field. Is not nullable.
value sql_variant The value of the field. Is not nullable.

Permissions

Requires the VIEW DATABASE PERFORMANCE STATE permission.

Remarks

This view has the following relationship cardinalities.

From To Relationship
sys.database_event_session_actions.event_session_id sys.database_event_sessions.event_session_id Many to one
sys.database_event_session_actions.event_id

sys.database_event_session_actions.object_id

sys.database_event_session_actions.event_session_id
sys.database_event_session_events.event_session_id

sys.database_event_session_events.event_id
Many to one
sys.database_event_session_actions.event_session_id

sys.database_event_session_actions.object_id
sys.database_event_session_targets.event_session_id

sys.database_event_session_targets.target_id
Many to one

Related content