<Biml xmlns="http://schemas.varigence.com/biml.xsd"> <Packages> <Package Name="PackageParameters" ConstraintMode="Parallel"> <Parameters> <Parameter Name="PackageParamStr" DataType="String">Test</Parameter> </Parameters> <Variables> <Variable Name="TestPackageParam" DataType="String" EvaluateAsExpression="true">@[$Package::PackageParamStr]</Variable> </Variables> </Package> </Packages> </Biml>
This is a simple snippet that shows how to declare and reference package parameters in Biml for use with SSIS 2012.
Comments
Geoff
1:56am 06.30.13
Thanks for the example. I found that you can use the parameter directly as a variable by just using the name of the parameter (i.e. PackageParamStr) no prefix. However I am struggling to pass a variable to a parameter from ExecutePackage task within the new Project Package in 2012. Do you have a snippet for passing the parameter?