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

CR and LF characters at end of records using Flat File data destinations (missing the CR)

$
0
0

Hi all -

I'm exporting a single column table to a Flat text File with the following attributes:

  • Ragged right
  • ColumnDelimiter = {CR}{LF}

When I open the file in a text editor and show markup I see the Line Feed but no Carriage Return.  Example:

T 00000 00009153.62{LF}

What I expect to see is:

T 00000 00009153.62{CR}{LF}

If I manually add the CHAR(13) + CHAR(10) to my Stored Procedure that selects the data, run that in SSMS and copy and paste the results into my editor, I get the second result which is what I'm after. I need both characters at the end of each line.  But for some reason the SSIS data flow task isn't creating it.  AND if I leave the CHAR(13) in the source procedure, SSIS still seems to strip it out and not save to the final exported file.  

Any suggestions?



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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