Solved

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

Posted on 2010-08-30
4
403 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Some sers suddenly getting error popup msg 28 89
SQL Server 2012 r2 - Sum totals 2 25
SQL view 2 27
Passing Parameter to Stored Procedure 4 24
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.
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.
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

778 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