Question : SQL Server 2000- new line/return character appearing as square boxes

I'm trying to do a comparison between a field in the database and a field on my data entry form.  It contains some new line and return characters.  In the text box, those characters are appearing as /n and /r, but in the database, they're being stored as what appears to be boxes.  Does anybody know how to do the comparison for these characters?  The field is being stored as varchar(8000).

Answer : SQL Server 2000- new line/return character appearing as square boxes

Try this

REPLACE(REPLACE(dbColumn, CHAR(10),''),CHAR(13),'') = REPLACE(REPLACE(txtString, '\n',''),'\r', '')

or this:

REPLACE(REPLACE(dbColumn, CHAR(10),''),CHAR(13),'') = REPLACE(REPLACE(txtString, CHAR(10),''),CHAR(13),'')
Random Solutions  
 
programming4us programming4us