If you want to convert the Varchar string without using any hyphen in SQL server. You can refer to the below code:
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)
It will help you in formatting a string as a unique identifier