Solved

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

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

867 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

19 Experts available now in Live!

Get 1:1 Help Now