NEWID

Creates a unique value of type uniqueidentifier.

Syntax

NEWID ()

Return types

uniqueidentifier

Example

SELECT NEWID() as NewGuid;

See Also