How can I convert a GUID which is 36 characters to a VARCHAR(32)?
36
I\'m trying to copy data from one table to another. There are two similar columns from the
I assume this is SQL Server, from the SSMS tag.
Convert the GUID to a string, then replace the hyphens with empty strings:
REPLACE(CAST(table1.colx AS VARCHAR(36)),'-','')