Reputation: 143
I have a SSIS job that contains 4 packages to perform ETL job
in the first package we use "select newid()" function to create an unique ID for that ETL process
wondering how can I pass that variable value to all ETL package so all 4 package can use the same ID
Execute package task is out of the picture cause we want the job to have 4 steps (perform by 4 packages)
Can anyone point me a direction ?
Thanks
Upvotes: 1
Views: 3013
Reputation: 15017
I would create a "Master Control Package" to generate the ID, store it in a variable, then use Execute Package Tasks to call the sub-packages.
This makes your SQL Agent job definition simpler (1 step calling the MCP), and you can leverage out-of-the-box features of SSIS like parallel execution, conditional execution and restart control via checkpoints.
Upvotes: 2