I'm extracting some data out of my server to be used in some dynamic JavaScript. I've run across a query that appears to have a carriage return in the text. I can tell there is a carriage return because when I view the JavaScript Source the code appears on two lines.
Actually the field in question starts off binary but I convert it to Text with the following line in my select statement:
CAST(CAST(RQB.BITS AS VARBINARY(8000)) AS VARCHAR(8000)) AS SPECS
I need to pull out double quotes (") and carriage returns from the field.
The Line below strips out the ".
REPLACE(CAST(CAST(RQB.BITS AS VARBINARY(8000)) AS VARCHAR(8000)), '"', '')
How do I get the carriage returns out?
--Rick
Actually the field in question starts off binary but I convert it to Text with the following line in my select statement:
CAST(CAST(RQB.BITS AS VARBINARY(8000)) AS VARCHAR(8000)) AS SPECS
I need to pull out double quotes (") and carriage returns from the field.
The Line below strips out the ".
REPLACE(CAST(CAST(RQB.BITS AS VARBINARY(8000)) AS VARCHAR(8000)), '"', '')
How do I get the carriage returns out?
--Rick