UUID_BLOB Function

Converts any universally unique identifier (UUID) into a compact 16-byte blob representation.

Syntax

UUID_BLOB(input)

Parameters

Return Value

The input UUID in blob format.

Example

DECLARE @a = UUID_BLOB('A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11');
SELECT TYPEOF(@a), @a;