How do you get back the full content of rows in SQL Server Management Studio?
If you use \"results to grid\" the data is encoded, so things like line breaks are lost
I cast it to XML
select @variable_with_long_text as [processing-instruction(x)] FOR XML PATH
The processing-instruction bit is there to stop it entitising characters such as < to <
processing-instruction
<