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.

Thanks.
Jim
LVL 67
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

James0628Commented:
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).

 James
0
Rainer JeschorCommented:
Hi,
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.

HTH
Rainer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
Jim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.