You use the Transform Data task to copy data between a source and destination and to optionally apply column-level transformations to the data. The Transform Data task is the most basic implementation of the data pump engine in Data Transformation Services (DTS).
The Transform Data task is optimized for insert-based copying and transforming of column-level data between commercial databases, spreadsheets, and text files. You can use the task to copy and transform data between any supported OLE DB connections. Because the task handles such a wide variety of data sources and transformation scenarios, you will frequently use one or more instances of it when creating packages that consolidate data from disparate sources.
Note If you need to bulk insert text files into Microsoft® SQL Server™ and are concerned with performance, use the Bulk Insert task. However, you cannot transform data with the Bulk Insert task. For more information, see Bulk Insert Task.
If the destination connection for a Transform Data task is the Microsoft OLE DB Provider for SQL Server, you can use the fast load option, which is available through the OLE DB IRowsetFastLoad interface. The fast load option supports high-performance bulk-copy processing. When the fast load option is enabled, the data pump can accept batches of transformed data.
When you batch data, the data pump writes the transformed rows to a destination buffer but does not submit them to SQL Server until either the specified batch size or the end of the source data is reached.
You can customize batch processing in a Transform Data task by writing your own functions. For more information, see Multiphase Data Pump Functionality.
You cannot use fast load with a Data Driven Query task.
Important Also, when using the fast load option in a Transform Data task with a lookup connection, make sure your lookup connection is not the same as the source or destination connections.
Transformations are applied prior to the bulk copying process. Therefore, you can use the same column-level transformations with the fast load option that you can use without the option (for example, a Microsoft ActiveX® Script transformation).
If a row contains errors and the Transform Data task does not detect them, the row causes the entire batch to fail on submission. Valid rows in such a batch are neither inserted nor noted as an error in the data pump exception files. The failure of an entire batch counts as only one failure toward the maximum error count.
You can control both the size of a batch and the way the data will be committed if a failure occurs. Before setting the batch size, consider the following:
For example, if your source contains a million rows of data, and the batch size is set to the default, the data will not commit until the one-millionth row is processed. In cases such as these, you may want to commit the data in batches of one thousand, or ten thousand, rather than in a single batch of one million.
Before configuring the error options for batching data, consider the following:
Batches succeed and fail independently of the package transaction. For more information, see Configuring Properties for DTS Transactions.
If the Transform Data task takes part in the package transaction, any successfully added batches are submitted only after the package transaction is committed.
In DTS Designer, configure a Transform Data task by following these steps:
To configure the connections for a Transform Data task
For more information, see DTS Connections.
To create a Transform Data task
For more information, see DTS Designer Example: Copying Northwind Data.
If you do not use the default transformation mappings, you need to select the source and destination columns for a transformation, select the transformation type, and set the properties of the transformation (as required by the transformation type). You repeat this process for each transformation you want to configure.
To configure a new transformation for a Transform Data task
For more information, see Mapping Column Transformations and Transformation Types.
For more information, see Lookup Queries.
To enable the Transform Data Task fast load options
To configure the fast load batch options
To configure the data pump exception file