Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SSIS Parsing question

Posted on 2009-04-07
6
Medium Priority
?
408 Views
Last Modified: 2013-11-10
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
Comment
Question by:healthcheckinc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 

Author Comment

by:healthcheckinc
ID: 24088522
Additionally when I use CRLF as my row delimiter I get an error saying that the last column delimiter was not found????
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24088526
Could you attach the flatfile example here?
Regards,
Pedro
www.pedrocgd.blogspot.com
0
 

Author Comment

by:healthcheckinc
ID: 24089011
Here ya go Pedro...I have the text qualifier set to " but the last column isnt being qualified for some reason???
ProctorTest1.txt
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 22

Accepted Solution

by:
PedroCGD earned 2000 total points
ID: 24095567
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
 

Author Closing Comment

by:healthcheckinc
ID: 31567572
Thanks for your help Pedro, once again!!
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24097209
you welcome! :-)
Visit my blog and leave a comment!
Pedro
www.pedrocgd.blogspot.com
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question