If you want to convert a Guid to a String in your query this is how you do it.
Id =CONVERT(VARCHAR(36),opportunityid)
Practical usage comes in SSRS reports; where you can’t play around with Guids within the report surface, in fact you need to get it as a string. I faced this when I needed to have a link to real record from the report.
No comments:
Post a Comment