Creating a DTS Package
To create a DTS package using Visual Basic or C++
- Create a Package object.
- Create a Connections collection for the package.
- Add one or more Connection objects to the Package object’s Connections collection.
- Create a Tasks collection.
- Add one or more Task objects to the Package object’s Tasks collection.
- If the Task object is a ExecuteSQLTask, DataPumpTask, or DataDrivenQueryTask object, it must reference one or more Connection objects.
- If Task object is a DataPumpTask or a DataDrivenQueryTask object:
- Add one or more Transformation objects to the Task object’s Transformations collection.
- Add one or more Column objects to the Transformation object’s source or destination Columns collection.
- 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.