I need to copy data from one SQL table to another table where I need this conversion, I tried the following:
SELECT TOP 10 CAST(Per_ID as UniqueIdentifier FROM Test
SELECT TOP 10 CONVERT(UniqueIdentifier,Per_ID,100) FROM Test
Both giving me this error:
Conversion failed when converting from a character
string
touniqueidentifier
.