4

How to replace text in sql server 2000 in a ntext column with more than 4000 characters? conversion to nvarchar(max) does not work as it truncates values.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Gabriel Diaconescu
  • 1,769
  • 3
  • 21
  • 31

2 Answers2

4

Working with TEXT/NTEXT is a mess - one of the many reason to get rid of those fields as quickly as possible.

You need to manipulate those with command such as READTEXT, WRITETEXT, UPDATETEXT and other - see some resources for help:

Community
  • 1
  • 1
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
1

nvarchar(max) isn't supported until sql server 2005. For sql server 2000 columns with more than 4000 wide characters, you must pull the data down to a client application and make your changes there.

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794