I am using several varchar variables in a proc to dynamically build a long string then execute the string with exec.
EXEC (@string1 + @string2 + @string3)
When I limit the size of each string to 4000 it works fine. If I let it go to 8000 it fails. The errors indicate the strings are being truncated.
Does anyone know why?
Thanks
EXEC (@string1 + @string2 + @string3)
When I limit the size of each string to 4000 it works fine. If I let it go to 8000 it fails. The errors indicate the strings are being truncated.
Does anyone know why?
Thanks