SQL Flow Field Guide

rowversion (data type)

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

auto-generated binary(8) that changes on every insert/update of the row

What changes

Input
none
Output or change
none

Syntax at a glance

rowversion

Work example

Detect whether a row changed since a client last read it.

Treat the value as an opaque concurrency token and compare the prior token in an update predicate.

Check your work rowversion is an increasing binary database value, not a date or wall-clock timestamp.

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