Solved

SSIS Merge two CSV Files

Posted on 2010-09-15
2
1,052 Views
Last Modified: 2012-05-10
Hi,

Please would someone be able to help me, i have two CSV files that i wish to merge by one column (partcode)

CSV 1 has: partcode, manufacturer, description, costprice, rrp

CSV2 has: partcode, stock

i need them to be merged by partcode for each item (the stock list has items that arent in the csv1)

i have used a merge join with an inner join which works but only does 6 rows when there are 359 rows in the file.

does anyone know how i can get this to work.

e.g. if part code matches then insert stock to csv1 file.

Regards
Sophie

xxx
 
0
Comment
Question by:sophieb1984
2 Comments
 
LVL 8

Accepted Solution

by:
brittonv earned 500 total points
Comment Utility
Have you considered using a powershell script to do it?
http://www.eggheadcafe.com/software/aspnet/29464678/mergingjoinging-two-files.aspx
0
 
LVL 1

Author Closing Comment

by:sophieb1984
Comment Utility
Thanks so much found the script on the link you sent and it works brilliantly i didnt even know that you could use powershell to do things like this i think i will need to brush up on powershell!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now