SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,021 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The data type text is deprecated and should have been replaced with varchar(MAX) long ago. So the real solution is to say:
ALTER TABLE tbl ALTER COLUMN textcol varchar(MAX)
If it is not in your powers to change the table definition, you need to make an explicit convert in your code:
convert(varchar(MAX), text) + nvarcharcol