Knowledge Base

BUG: Problem with Selecting Text Data into a Local Char or Var

Article ID: 152052

Article Last Modified on 3/1/2005


APPLIES TO


This article was previously published under Q152052

SYMPTOMS

If a text column has more than 1155 bytes of data, then using UPDATETEXT to delete initial 'x' bytes and then selecting next 'y' bytes using the CONVERT function (of course <= 255 bytes) into a local char or varchar variable would always populate the variable with first 'y' bytes. Note that after running UPDATETEXT to delete data, running READTEXT or a simple select (not populating a variable) shows that the data in the table has been deleted properly. This does not happen when the text column has data up to 1155 bytes.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0 and 6.5.

Keywords: kbbug KB152052