UUIDTOSTR function [String]

Function

Converts a unique identifier value (UUID, also known as GUID) to a string value.

Syntax

UUIDTOSTR ( uuid-expression )

Parameters

uuid-expression A unique identifier value.

Usage

Converts a unique identifier to a string value in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, where x is a hexadecimal digit. If the binary value is not a valid uniqueidentifier, NULL is returned.

This function is useful if you want to view a UUID value.

Standards and compatibility

See also

“NEWID function [Miscellaneous]”

“STRTOUUID function [String]”