Solved

SSIS: merging sql data with script transformation output - which tool?

Posted on 2010-08-30
4
397 Views
Last Modified: 2013-11-10
I have a script transformation that is creating a dataset and I want to do lookup to other sql tables to pull in foreign keys to insert into another table. Do I use a Lookup or something else? Anyone have any links to examples I could follow?
0
Comment
Question by:wppiexperts
  • 3
4 Comments
 
LVL 30

Accepted Solution

by:
Reza Rad earned 75 total points
Comment Utility
connect output of script component to a lookup transformation and set lookup table ( it must be an OLE DB Connection ) now you have match rows and non match rows output
0
 
LVL 30

Expert Comment

by:Reza Rad
Comment Utility
0
 

Author Comment

by:wppiexperts
Comment Utility
what if I have up to 3 tables I want to bring in foreign keys from...do I need a seperate Lookup for each?
0
 
LVL 30

Expert Comment

by:Reza Rad
Comment Utility
if your input is 3 table, but your lookup table is one,
just merge all inputs with UNION ALL Transformation and then connect output of union all to lookup.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

762 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