Creating a DTS Package

To create a DTS package using Visual Basic or C++

  1. Create a Package object.
  2. Create a Connections collection for the package.
  3. Add one or more Connection objects to the Package object’s Connections collection.
  4. Create a Tasks collection.
  5. Add one or more Task objects to the Package object’s Tasks collection.
  1. Add one or more Step objects to the Package object’s Steps collection. Note that each Step object must reference one Task object using the Step.TaskName property.

To control the sequence of program execution, add one or more Precedence constraints (based on a previous Step object) to the Step object’s PrecedenceConstraints collection.

  


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