?
Solved

SSIS Merge two CSV Files

Posted on 2010-09-15
2
Medium Priority
?
1,080 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
[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
2 Comments
 
LVL 8

Accepted Solution

by:
brittonv earned 2000 total points
ID: 33683173
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
ID: 33699354
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
I have a large data set and a SSIS package. How can I load this file in multi threading?
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 setup several different housekeeping processes for a SQL Server.

649 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