• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 414
  • Last Modified:

SSIS Parsing question

I have a flat file that has EOR at the end of each row...When I use EOR as the row delimiter The data goes into my source table but it doesnt appear correct(I think because it also has a CR LF on each row). Is there anyway I can either write a SQL statment that goes by the EOR to distinguish the end of the row and then insert that row? Or, can I convert this flatfile into an excel spreasheet because it looks exactly how I need it in a spreadsheet for some reason and then I can load it into my SQL table? Any thoughts?
0
healthcheckinc
Asked:
healthcheckinc
  • 3
  • 3
1 Solution
 
healthcheckincAuthor Commented:
Additionally when I use CRLF as my row delimiter I get an error saying that the last column delimiter was not found????
0
 
PedroCGDCommented:
Could you attach the flatfile example here?
Regards,
Pedro
www.pedrocgd.blogspot.com
0
 
healthcheckincAuthor Commented:
Here ya go Pedro...I have the text qualifier set to " but the last column isnt being qualified for some reason???
ProctorTest1.txt
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
PedroCGDCommented:
Add the attached package to an existent SSIS Solution.

My Steps:
1. Split each row by delimiter ;EOR
2. Replace all " by empty
3. read each column in the source....

I only created 3 column in the output of the script component, you should create all the other columns.
Update the path inside ForEach Loop.

Helped?
Regards,
Pedro

www.pedrocgd.blogspot.com
SSIS-Interface0.JPG
SSIS-Interface1.JPG
SSIS-Interface2.JPG
SSIS-Interface3.JPG
SSIS-ScriptCode.JPG
Package-EE99-dtsx.txt
0
 
healthcheckincAuthor Commented:
Thanks for your help Pedro, once again!!
0
 
PedroCGDCommented:
you welcome! :-)
Visit my blog and leave a comment!
Pedro
www.pedrocgd.blogspot.com
0
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.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now