Solved

SSIS Merge two CSV Files

Posted on 2010-09-15
2
1,060 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help on t-sql 2012 10 53
get column names from table in vb.net 8 27
SQL Replication question 9 41
What is the proper way to use for criteria in left join? 7 25
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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 UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

776 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