Generates a UUID (Universally Unique Identifier) value. A UUID is the same as a GUID (Globally Unique Identifier).
NEWID ( )
There are no parameters associated with NEWID().
The NEWID() function generates a unique identifier value.
UUIDs can be used to uniquely identify rows in a table. The values are generated such that a value produced on one computer will not match that produced on another. Hence they can also be used as keys in replication and synchronization environments.
You cannot use the NEWID function as a column default for an IQ table.
NEWID is a non-deterministic function. Successive calls to NEWID may return different values. The query optimizer does not cache the results of the NEWID function.
For more information about non-deterministic functions, see CREATE FUNCTION statement.
UNIQUEIDENTIFIERSTR in Character data types