sql server cast uniqueidentifier to string code example Example: guid to string sql convert(nvarchar(50), {GuidColumnHere!})