문제

I have an SSIS solution that has hundreds of components and approximately 30 packages. I would like to know what would be the best way to structure such a solution.

The entire thing looks like this:

enter image description here

When double clicking on any one of those components, to view the data flow, it looks like this:

enter image description here

As a way to make my work more manageable, I've broken up every individual control flow component into its own solution. Another words, I've taken everyone of these:

enter image description here

and I've created a solution for every one of them:

enter image description here

Now I need to create a master solution.

enter image description here

Question: How do a structure a "master" solution to run every one of these solutions in a specified order (as specified by the first graphic)?

enter image description here

Thank you so much for your kind and generous guidance and advice.

도움이 되었습니까?

해결책

Create your master package as a series of Execute Package Tasks with precedence constraints in the order that you want them to run. That way you can use package configurations to pass variables to the sub-packages, if that's something you need to do.

enter image description here

Edit: To use package configurations to pass the connection string, do the following:

Set a variable in the master package with the connection string as its value. (Execute Package Task is the sub package).

enter image description here

In the child package, under SSIS>Package Configurations in the menu, add a parent variable package configuration.

enter image description here

Then, map that parent variable value to either a variable in the child package, or directly to the appropriate connection string in the child package. (I typically pass it to a sub variable).

enter image description here

Save the configuration. Please note that the child package will no longer run independently without being called by the master package.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top