Technical Article

Remove tab,line feed and carriage return frome text field

,

Replace [TextField] with your text/varchar column/variable

 

REPLACE(REPLACE(REPLACE([TextField], CHAR(9), ''), CHAR(10), ''), CHAR(13), '')

 

Useful when you want to compare strings and want to diregard tabs and new lines.

REPLACE(REPLACE(REPLACE([TextField], CHAR(9), ''), CHAR(10), ''), CHAR(13), '')

Rate

3.9 (10)

You rated this post out of 5. Change rating

Share

Share

Rate

3.9 (10)

You rated this post out of 5. Change rating