Scheduling the DTS Package

A saved DTS package can be scheduled to execute at a specific time. A scheduled DTS package is executed by SQL Server Agent as a job. The DTS package can be scheduled to execute once, or at recurring intervals. Examples of intervals include:

A scheduled DTS package is executed by the SQL Server Agent service as a job. Because the SQL Server Agent service controls the underlying automation for scheduling, it must be running for any scheduled packages to execute. You can schedule for execution a package created in DTS Designer:

Using the Schedule Package Option

The Schedule Package option is the easiest way to schedule for execution; however, the package must have been saved to either the SQL Server™ msdb database or Repository, and it must exist on the local server.

To schedule a DTS package using the Schedule Package option

Using SQLServerAgent to Schedule a Package

You can also use SQLServerAgent to schedule any package created within DTS Designer (including Data Transformation Services, or .dts files), within the DTS Import and DTS Export wizards, or as an external program.

To schedule a DTS package using the SQLServerAgent service

SQL Server Agent Permissions

Scheduled packages are executed by the SQL Server Agent process, which uses permissions specified during server registration. The permissions, path, and share drive letters of the SQL Server Agent process are likely to be different than those of the client process that defined and saved the DTS package. The SQL Server Agent process must have permissions to open the package, and the package location specified in the job definition must be valid from the SQL Server Agent process:

See Also
dtsrun Utility Executing DTS Packages
dtswiz Utility Scheduling Jobs


(c) 1988-98 Microsoft Corporation. All Rights Reserved.