Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Pass variables to child via C# script task? Expand / Collapse
Author
Message
Posted Wednesday, December 18, 2013 6:34 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, April 15, 2014 2:32 PM
Points: 182, Visits: 479
I don't want to use package configurations to pass variables from Parent to child package. I'd prefer to pass the variables to child, from a C# script task in the parent package. Can this be done ? Here is the pseudocode for what I hope to do -

//code in script task of parent package

Main(){

Object parentObj = SSIS.ParentPackage.myObject;

String parentStr = SSIS.ParentPackage.myString;

callChildPackage(parentObj, parentStr);

}
Post #1524421
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse