SQL Flow Field Guide

EVENTDATA

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

trigger context

What changes

Input
DDL or logon event
Output or change
xml event document

Syntax at a glance

EVENTDATA( )

Work example

Read XML event details inside a DDL or logon trigger.

Run one statement that affects several rows and verify every inserted and deleted row is handled.

Check your work Check event type and XML path and restrict trigger data returned to callers.

Open Microsoft Learn for full syntax, permissions, and details for your version.