I have a database called Account Type that has carriage returns and newlines (CHAR (10) and CHAR (13)).
When I look for this value, I need to do REPLACE as shown below. The following code is working fine.
SELECT AccountNumber,AccountType, REPLACE(REPLACE(AccountType,CHAR(10),'Y'),CHAR(13),'X') FormattedText FROM Account WHERE AccountNumber=200 AND REPLACE(REPLACE(AccountType,CHAR(10),' '),CHAR(13),' ') LIKE '%Daily Tax Updates: ----------------- Transactions%'
My question is: what are the other characters (similar to CHAR (10) amd CHAR (13)) that need such a replacement?
Note. The data type for the VARCHAR column.
Note. The query is launched from SQL Server Management Studio

sql sql-server
Lijo Feb 12 '13 at 15:34 2013-02-12 15:34
source share