• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 419
  • Last Modified:

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

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
wppiexperts
Asked:
wppiexperts
  • 3
1 Solution
 
Reza RadConsultant, TrainerCommented:
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
 
wppiexpertsAuthor Commented:
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
 
Reza RadConsultant, TrainerCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now