Solved

How to combine two flat files into one using Script Task in SSIS 2012?

Posted on 2014-12-23
1
486 Views
Last Modified: 2016-02-15
I need to combine two flat files into one using SSIS 2012 Script Task. Both files have one common key column and the contents of the column is unique for each row. I am looking for good and reliable way to combine the two files into one. I hope experts can help me with that. Thank you.
0
Comment
Question by:Burzhuin
1 Comment
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 40514949
Create connections to both flat files, plus your output file.
Create a data pump that has...
One source component for each source
You may need sort components if the files are not already sorted
One JOIN component to merge the two data streams into one
One destination component for the target file.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MS SQL Backup 24 72
Server 2008 Cluster Fail-over Errors 5 53
shrink datafile Sql server 4 18
Join vs where 2 11
Here's a requirements document template for an integration project (also known as Extract-Transform-Load or ETL) based on my development experience as an SQL Server Information Services (SSIS) developer over the years.
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

744 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

8 Experts available now in Live!

Get 1:1 Help Now