SQL Flow Field Guide

COLUMNS_UPDATED

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

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.