/ Published in: SQL
Expand |
Embed | Plain Text
UPDATE TABLENAME SET FIELDNAME = cast(REPLACE(cast(FIELDNAME AS nvarchar(max)),'find-this','replace-this') AS ntext) WHERE Content LIKE '%find-this%'
You need to login to post a comment.
Meander365 on 04/21/10
1 person have marked this snippet as a favorite
UPDATE TABLENAME SET FIELDNAME = cast(REPLACE(cast(FIELDNAME AS nvarchar(max)),'find-this','replace-this') AS ntext) WHERE Content LIKE '%find-this%'
You need to login to post a comment.