To build a Data Transformation Services (DTS) custom transformation, use the Active Template Library (ATL) custom transformation template. This template, which enables you to build custom transformations more quickly than if you used the ATL standard template, is included in the Microsoft® SQL Server™ 2000 DTS sample programs. For more information, see DTS Programming Samples.
To install the ATL custom transformation template, do the following:
You can create an ATL component that includes a custom transformation class by using the Microsoft Visual C++® development environment.
To create the ATL component
For this discussion, assume DTSTrans was entered for the project name.
For this discussion, assume CustomXFm was entered. The wizard will fill in the other fields. The COM/Type field is the name that will appear in the Create New Transformation dialog box of DTS Designer, You can change it from the default CustomXFm Class.
The wizards will create files for the DTSTrans component and the CustomXFm class and save them to the project location folder specified in Step 1.
Building this transformation project from the Build/Build DTSTrans.dll menu, before adding any custom code, installs a custom transformation that will appear in the Create New Transformation dialog box and can be included in a DTS package. However, this custom transformation will not copy or transform the source columns when the package is run. For more information about building and debugging a custom transformation, see Implementing and Testing a DTS Custom Transformation.