To create a Data Transformation Services (DTS) package using a programming language that supports COM, you need to create a hierarchy of objects headed by a Package2 object from the DTS object model. After setting the properties of this hierarchy, you can then invoke methods of a Package2 object to run the package. You also can save the package to Microsoft® SQL Server™, a COM-structured storage file, a Microsoft Visual Basic® file, or to SQL Server 2000 Meta Data Services.
Note An object whose name ends with the digit 2 is an extended version of a DTS object from SQL Server version 7.0. If you want to run a package on SQL Server 7.0, it is recommended that you use the corresponding object whose name does not have a 2 appended. For more information, see Extended DTS Objects.
This section summarizes building DTS packages and using DTS objects and features without regard to the programming language you are using for implementation. For more information about configuring a particular development environment and using it to implement DTS packages, see Creating DTS Packages in Visual Basic.
The following table summarizes the topics describing the DTS objects and features you use to implement a package. Most objects and features are optional for a particular package. You are only required to create at least one step and at least one task. You do not need to follow the order provided here except where the DTS object hierarchy dictates. For example, you must create the Package2 object first to gain access to the methods used to create other DTS objects.