SQL Flow Field Guide

$ROWGUID

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

pseudo-column reference $ROWGUID resolves to the ROWGUIDCOL column

What changes

Input
the table's ROWGUIDCOL column
Output or change
column value

Syntax at a glance

SELECT $ROWGUID FROM table

Work example

A query needs the column marked ROWGUIDCOL from a table that declares one.

Confirm the table has a ROWGUIDCOL property and compare the pseudo-column with its named uniqueidentifier column.

Check your work $ROWGUID. The selected value matches the marked column and the table has no ambiguous row-guid definition.

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