Sdílet prostřednictvím


Creating and Running the Child Packages

When you implement load balancing using Integration Services, child packages are installed on other servers to take advantage of the available CPU or server time. To create and run the child packages requires the following steps:

  • Designing the child packages.

  • Moving the packages to the remote server.

  • Creating a SQL Server Agent Job on the remote server that contains a step that runs the child package.

  • Testing and debugging the SQL Server Agent Job and child packages.

When you design the child packages, the packages have no limitations in their design, and you can put in any functionality you desire. However, if the package accesses data, you must ensure that the server that runs the package has access to the data.

After the child packages have been designed, the next step is to deploy them on the remote servers.

Moving the Child Package to the Remote Instance

There are multiple ways to move packages to other servers. The two suggested methods are:

You must repeat the deployment to each remote server you want to use.

Creating the SQL Server Agent Jobs

After the child packages have been deployed to the various servers, create a SQL Server Agent job on each server that contains a child package. The SQL Server Agent job contains a step that runs the child package when the job agent is called. The SQL Server Agent jobs are not scheduled jobs; they run the child packages only when they are called by the parent package. Notification of success or failure of the job back to the parent package reflects the success or failure of the SQL Server Agent job and whether it was called successfully, not the success or failure of the child package or whether it was executed.

For more information about how to create a SQL Server Job Agent for each package on each remote server, see How to: Run a Package.

Debugging the SQL Server Agent Jobs and Child Packages

You can test the SQL Server Agent jobs and their child packages by using one of the following methods:

  • Running each child package in SSIS Designer, by clicking Debug / Start Without Debugging.

  • Running the individual SQL Server Agent job on the remote computer by using SQL Server Management Studio, to make sure that the package runs.

For information about how to troubleshoot packages that you run from SQL Server Agent jobs, see An SSIS package does not run when you call the SSIS package from a SQL Server Agent job step in the Microsoft Support Knowledge Base.

Security on the SQL Server Agent Job

The SQL Server Agent checks subsystem access for a proxy and gives access to the proxy every time the job step runs. For more information, see Creating SQL Server Agent Proxies.

You can create a proxy in SQL Server Management Studio. For more information, see How to: Create a Proxy (SQL Server Management Studio).

Integration Services icon (small) Stay Up to Date with Integration Services

For the latest downloads, articles, samples, and videos from Microsoft, as well as selected solutions from the community, visit the Integration Services page on MSDN or TechNet:

For automatic notification of these updates, subscribe to the RSS feeds available on the page.