Removing Carriage Return + Line Feed in T-SQL

So annoyed by a CR+LF in XML values within in a table I’m looking at right now. Easily removed with…


REPLACE(REPLACE(XmlField, CHAR(10), ''), CHAR(13), '')

Advertisements