I tried seaching the archive without much success, so here is my situation.
I have a SS2K database.
I have a table (
MyTable) with one NTEXT field (
MyNtext) and a prime key (
PK). and I need to copy data from the NTEXT field in one record to the same field in another record and overwrite the data.
I tried using:
Code:
UPDATE MyTable
SET MyNtext = (SELECT MyNtext FROM MyTable WHERE PK = 44)
WHERE PK = 66
I get the error code:
Quote:
.Net SqlClient Dataq Provider: Msg 279, Level 16, State 3, Line 40
The ntext data type is invalid in the subqquery or aggregate expression.
|
I tried playing around with READTEXT and WRITETEXT, but I don't know how to get the output from the READTEXT to feed the input of the WRITETEXT.
Does anyone have an example of how to do this? Any help would be appreciated!