My VARCHAR(MAX) field is capping itself at 4000; what gives?
问题 I have a table in one of my databases which is a queue of emails. Emails to certain addresses get accumulated into one email, which is done by a sproc. In the sproc, I have a table variable which I use to build the accumulated bodies of the emails, and then loop through to send each email. In my table var I have my body column defined as VARCHAR(MAX) , seeing as there could be any number of emails currently accumulated for a given email address. It seems though that even though my column is