SQL Flow Field Guide

NEWSEQUENTIALID

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

generator usable only in a DEFAULT constraint

What changes

Input
none
Output or change
increasing uniqueidentifier
Return type
uniqueidentifier

Syntax at a glance

NEWSEQUENTIALID ( )

Work example

Generate a sequential GUID in a column default to reduce random index insertion.

Read state in the intended scope and immediately after the statement it describes. Treat host values as untrusted.

Check your work It is restricted to DEFAULT and is neither a secret nor a global ordering guarantee.

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