Answers for "SQL SERVER convert guid"

SQL
0

convert sql server guid to varbinary

select cast(hashbytes('md5','foo') as uniqueidentifier)
Posted by: Guest on February-16-2021
0

sql server convert to guid

DECLARE @uuid VARCHAR(50)
SET @uuid = 'a89b1acd95016ae6b9c8aabb07da2010'
SELECT  CAST(
        SUBSTRING(@uuid, 1, 8) + '-' + SUBSTRING(@uuid, 9, 4) + '-' + SUBSTRING(@uuid, 13, 4) + '-' +
        SUBSTRING(@uuid, 17, 4) + '-' + SUBSTRING(@uuid, 21, 12)
        AS UNIQUEIDENTIFIER)
Posted by: Guest on August-17-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language