SQL Server: Export Fixed Width Flat file with Carriage Return Line Feed (i.e. CRLF)

Problem:

I haven’t exported data file in fixed width format for the longest time.  When I exported using “Fixed width” format in SQL Server SSIS, I have a file with all records in a single line, without any CR/LF.

Solution:

It turns out “Ragged Right” is the new “Fixed width”; it allows you to choose the Row delimiter “{CR}/{LF}”.  With it, I have the expected flat file with all records on a separate lines of text.

SNAGHTML3dd7937b

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s