how to get the full resultset from SSMS

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 &lt;

Leave a Comment