I was wondering how to manipulate ntext datatype in stored procedure of SQL Server 2008.
We have a column of type ntext in a table. We have to fetch data from that column, parse the data, change and then store it back.
For all of the above task we have to use one or more than on stored procedure/function. So data passing between stored procedures are also involved.
I was wondering how to manipulate ntext datatype in stored procedure of SQL Server
Share
If you’re in the position to change the schema, consider changing the data type from
ntexttonvarchar(max). The later is new in SQL Server 2005, it’s more efficient, and it works with string functions.If you can’t change the schema, convert the
ntextto a local variable of typenvarchar(max). String functions do work withnvarchar(max). Example: