First we need to create two packages, one named Master, and another named child. Then we will create a string
variable named "strValue".
In the parent package we will provide the value of variable is
"Parent". We will pass this value to the child package. In the Child
package we will provide the value of variable is "Child”, which will be
replace by the parent package.
Master
Package:-
the
Execute Package task in the Master Package and configure it for browsing to
Child Package.
Then go the Child Package, we need to use the Package
Configuration by right clicking on Control flow task. Select the Parent Package Variable as a Configuration
type. In the Parent Variable field enter the “strValue", this was the name of the variable we created on the
parent package, then click next.
Click on the plus next to the "strValue" variable and then the plus next to the properties
folder under it. Then click on value so it is highlighted. This tells SSIS
where to copy the value of the parent variable. Click next and finish.
To see the value of parent package variable in Child package.
Add the script task on Child package to show the value of master
package value







No comments:
Post a Comment