Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Text file with comment field containing carriage returns

$
0
0

I have a text file that is tab delimited, non-qualfied, with column names as the first row. The row delimiter is {CR}{LF}. The last field is a comment field, and some rows contain CRLFs within that field. I tried removing those with a derived column that uses this expression :

REPLACE(REPLACE(Comments,"\n"," "),"\r"," ")

My guess is it doesn't work because SSIS identifies the end of each row before looking at the contents of the last field.

Does anyone have a suggestion?

Thank you


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>