Getting values from VARCHAR(MAX) fields in Management Studio
If you have a field you need to inspect that's hitting the limit of 65523 characters this will (usually) dump the field out for you without having to write a little program:
declare @field varchar(max)
select @field = field from atable where pk = 'akey'
print @field
Written by Garry Shutler
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sql
Authors
Related Tags
#sql
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#