2019-04-04

TSQL - How to create a random ID or GUID

DECLARE @guid uniqueidentifier;
SELECT @guid = CONVERT(nvarchar(255), NEWID());
PRINT @guid

No comments:

Post a Comment