COLUMNS_UPDATED
trigger context
What changes
- Input
- column set targeted by the firing INSERT/UPDATE
- Output or change
- varbinary bitmask
- Return type
- varbinary
Syntax at a glance
COLUMNS_UPDATED ( )
Work example
Read the trigger bitmask for columns targeted by an insert or update.
Run one statement that affects several rows and verify every inserted and deleted row is handled.
Check your work Decode the correct column ordinal and remember one statement can affect several rows.
Open Microsoft Learn for full syntax, permissions, and details for your version.