Hi. I am trying to get rid of all carriage returns in a text field. I have tried the following query to replace a carriage return with ''
I am DTS Exporting the data to a text file and the carriage return is still starting a new row. Can you help with my query or have a better idea in mind?
Thanks!
Brian
Code:
update mytable
set comments = REPLACE(SUBSTRING(comments, 1, DATALENGTH(comments)), CHAR(13), '')
where charindex(char(13), Comments) > 0
I am DTS Exporting the data to a text file and the carriage return is still starting a new row. Can you help with my query or have a better idea in mind?
Thanks!
Brian