Solved

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

Posted on 2010-08-30
4
400 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
ID: 33558630
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
ID: 33558671
0
 

Author Comment

by:wppiexperts
ID: 33558906
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
ID: 33558999
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

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with SQL Server Stoplist 2 17
Can someone plz fix this..getting an error 3 18
SSRS troubles 4 12
SQL VIEW 7 6
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
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.

911 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

24 Experts available now in Live!

Get 1:1 Help Now