Painting Blue Code
Simple, self-explanatory code snippets.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment