?
Solved

SQL update statement to replace txt string with a non-printable line-break character

Posted on 2010-09-10
3
Medium Priority
?
519 Views
Last Modified: 2012-05-10
SQL update statement to replace txt string with a non-printable line-break character
we would like to update all '<BR>' entries in a field with a non-printable line-break character

thank you.
0
Comment
Question by:rastafaray
[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
  • 2
3 Comments
 
LVL 3

Expert Comment

by:ghayasurrehman
ID: 33649321
update table set column = REPLACE(column,'<BR>','\r\n') where <your criteria>
0
 

Author Comment

by:rastafaray
ID: 33650366
that didnt work!  

we ended up with "HELLO\r\nTEXT" instead of "HELLO<BR>TEXT"

we are looking for

"HELLO
TEXT"
0
 

Accepted Solution

by:
rastafaray earned 0 total points
ID: 33650409
found it...

update table set column = REPLACE(column,'<BR>',CHAR(13) + CHAR(10)) where <your criteria>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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 backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Suggested Courses

801 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