Solved

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

Posted on 2010-09-10
3
500 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
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.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now