ctwilliams
Programmer
I want to concatenate a text field with a varchar field. For example...
SQL Books Online says that the "+" (string concatenation) operator can be used with "any of the data types in the character and binary data type category, except the image, ntext, or text data types."
I tried CAST'ing the text field to a varchar type, but this causes the text to be truncated after a certain number of characters.
Is there some other way to do this?
Code:
SELECT MyTextField + ' append some other text'
FROM MyTable
SQL Books Online says that the "+" (string concatenation) operator can be used with "any of the data types in the character and binary data type category, except the image, ntext, or text data types."
I tried CAST'ing the text field to a varchar type, but this causes the text to be truncated after a certain number of characters.
Is there some other way to do this?