Changes to the Execute Package Task

Changes to the Execute Package Task

Rate This
  • Comments 3

Todays post is from Terri Chen, a developer on the SQL Server Integration Services team.

--------------------------

SSIS has introduced new concepts in SQL Server “Denali”, such as the project deployment mode, projects and parameters. We have extended Execute Package Task accordingly to best use parameters in child packages.

To pass configurations for child packages used to be quite some work and our customers used to complain a lot about it. With the new functionalities of Execute package Task, the experience with passing parameters for child packages is much simplified.

On opening the editor of Execute Package Task, you will find a new property, named ReferenceType on the “Package” page. If you choose “External Reference”, it will show the familiar SQL Server 2008 options of SQL Server or File System. All the scenarios are back compatible. The “Project Reference” is the new reference type.

clip_image002

After choosing, “Project Reference” as the reference type, you will see PackageNameFromProjectReference property with options of all package names in the project. Choose the targeted child package name. In the example, the child package is “ChildPacakge.dtsx”.

clip_image004

The child package in the example is a simple package with a single Execute Process Task. The value of RerquiredFullPathName property of the Execute Process Task is false. The executable expression uses a string type parameter called “ExcutableName”. The value of the parameter is “notepad”. By executing the child package itself, it invokes process “notepad”.

clip_image006

The “Parameter bindings” page is a new page introduced in In SQL Server “Denali”. It is used to bind a variable or a parameter of the parent package or a project level parameter with a parameter of the child package. During execution, the binding parameter or variable value is assigned to the parameter of the child package. In the example, the parent package has a string type parameter “ParentParameter” whose value is “calculator”. By clicking on “Add” button, a binding can be created as following. By executing the parent package, the value “calculator” is passed to the parameter “ExecutableName” of the child package and the child package will invoke process “calculator” instead of “notepad”.

clip_image008

ProjectReference is design for the new project deployment mode projects and only supports child packages in the same project as the parent package. If you want to reference a package in another project, you have to use External Reference and reference the package by its path on the file system or on the SQL Server. With external reference, you can only use configurations for child packages. Controls on “Parameter bindings” page is disabled when using external reference.

Leave a Comment
  • Please add 3 and 2 and type the answer here:
  • Post
  • Thanks this link helps a lot for the beginners in SSIS.

  • "If you want to reference a package in another project, you have to use External Reference " - this does not work if the child package is in another project that was deployed using the new Project Deployment Model, because the External Reference requires a connection manager that points to the server's DATABASES, not to the Integration Services Catalog, where the child package is stored. Or did I miss anything?

  • You are "P". And according to this: connect.microsoft.com/.../ssis-2012-execute-package-task-external-reference-does-not-work-with-ssisdb , we won't have it in the next versions. It's a shame.

Page 1 of 1 (3 items)