Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Question regarding VARCHAR(MAX)

Author  Topic 

kgundava
Yak Posting Veteran

66 Posts

Posted - 2011-08-03 : 16:26:04
Hi All,
I am storing a pretty large string in the VARCHAR(MAX) variable.When i am printing it out using print(@VAR)i found not every thing is printed ???Does it mean the string is cut off or is it the limitation of the PRINT().
Thanks...........

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-08-03 : 16:29:10
Tools..Options..Query Results..SQL Server..Results to Text. The highest you can go with text is 8192. If you need to see more than that, I think you'll need to output to XML. I could be wrong there though.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -