1DECLARE @uuid VARCHAR(50)
2SET @uuid = 'a89b1acd95016ae6b9c8aabb07da2010'
3SELECT CAST(
4 SUBSTRING(@uuid, 1, 8) + '-' + SUBSTRING(@uuid, 9, 4) + '-' + SUBSTRING(@uuid, 13, 4) + '-' +
5 SUBSTRING(@uuid, 17, 4) + '-' + SUBSTRING(@uuid, 21, 12)
6 AS UNIQUEIDENTIFIER)