SSIS How to get rid fo Hex OA / CHAR(12) characters in flat files

Hi All

I'm building an SSIS 2008R2 package to import various flat files.  The problem I'm having is that instead of CR-LF row delimeters, there are Hex OA / CHAR(12) row delimeters. notepad-view.jpgultraedit-hex-oa-file-view.jpgultraedit-hex-oa-hex-view.jpg
If it's a script, I'll take either VB.NET or C#, whatever works.

LVL 66
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAsked:
Who is Participating?
Rainer JeschorConnect With a Mentor Commented:
if you use a Connection Manager of type "Flat File Connection Manager" for a Flat File Source you can easily specify in the configuration both for the header row (on the general tab) as well as for the data rows (on the Columns tab) to have the separator "{LF}" - therefore no need to pre-process / adjust the import file.

James0628Connect With a Mentor Commented:
Well, 0A is a LF, so what you've got is a "Unix format" text file, with LF delimiters, instead of CR-LF.  I don't know if this will fit your needs, but there are various command line utilities that you can use to replace every LF with a CR-LF.  You can do a Web search for something like "dos unix cr lf" (without the quotes).

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAuthor Commented:
That was it.  Was so used to {CR}{LF} that I didn't know how to handle just {LF}.  

Thanks guys.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.