Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 2.89 KB

sys-dm-xe-session-event-actions-transact-sql.md

File metadata and controls

60 lines (48 loc) · 2.89 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sys.dm_xe_session_event_actions (Transact-SQL)
sys.dm_xe_session_event_actions (Transact-SQL)
rwestMSFT
randolphwest
02/27/2023
sql
system-objects
reference
dm_xe_session_event_actions_TSQL
sys.dm_xe_session_event_actions_TSQL
dm_xe_session_event_actions
sys.dm_xe_session_event_actions
extended events [SQL Server], views
sys.dm_xe_session_event_actions dynamic management view
TSQL

sys.dm_xe_session_event_actions (Transact-SQL)

[!INCLUDE SQL Server SQL Managed Instance]

Returns information about event session actions for active server-scoped sessions. Actions are executed when events are fired.

Azure SQL Database supports only database-scoped sessions. See sys.dm_xe_database_session_event_actions.

Column name Data type Description
event_session_address varbinary(8) The memory address of the event session. Is not nullable.
action_name nvarchar(256) The name of the action. Is not nullable.
action_package_guid uniqueidentifier The GUID for the package that contains the action. Is not nullable.
event_name nvarchar(256) The name of the event that the action is bound to. Is not nullable.
event_package_guid uniqueidentifier The GUID for the package that contains the event. Is not nullable.

Permissions

Requires VIEW SERVER STATE permission on the server.

Permissions for SQL Server 2022 and later

Requires VIEW SERVER PERFORMANCE STATE permission on the server.

Relationship cardinalities

From To Relationship
sys.dm_xe_session_event_actions.event_session_address sys.dm_xe_sessions.address Many-to-one
sys.dm_xe_session_event_actions.action_name,

sys.dm_xe_session_event_actions.action_package_guid
sys.dm_xe_objects.name,

sys.dm_xe_session_events.event_package_guid
Many-to-one
sys.dm_xe_session_event_actions.event_name,

sys.dm_xe_session_event_actions.event_package_guid
sys.dm_xe_objects.name,

sys.dm_xe_objects.package_guid
Many-to-one

Next steps

Learn more about related concepts in the following articles: