?
Solved

Replace on an NTEXT field in Sql 2000

Posted on 2010-09-22
3
Medium Priority
?
326 Views
Last Modified: 2012-05-10
Hi Folks,

I have ntext fields containing XML which are all longer than 4000 characters in a sql 2000 DB

I need to do the following replace on them:

update MyTable
Set SourceQuery = Replace(Replace(cast(SourceQuery as nvarchar(4000)), '<SCR>', '<PX>0</PX><SCR>'), '</Order>', ',PX</Order>')
Where SourceType = 'X334'

Without reinventing the wheel, how can I get this done ?

thanks

0
Comment
Question by:plq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Author Comment

by:plq
ID: 33735760
@anee... how does that help ? I don't know how to turn that into a solution that does the replace ??
0
 
LVL 11

Accepted Solution

by:
Larissa T earned 2000 total points
ID: 33736056
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question