sql server remove newline and tab from string code example Example: replace \n sql SELECT REPLACE(REPLACE(@str, CHAR(13), ''), CHAR(10), '')