Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top