Solved

SSIS Parsing question

Posted on 2009-04-07
6
401 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
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 22

Accepted Solution

by:
PedroCGD earned 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

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

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

856 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