Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top