This example demonstrates how to use Data Transformation Services (DTS) Designer to copy a Northwind database table from the source to the destination. The basic steps are:
Begin by creating a connection to the Northwind database on your local server.
To create a connection to Northwind in DTS Designer
Usually, the source and destination databases are different, but for this example, you create a second connection to the Northwind database.
To create a second connection to the Northwind database using DTS Designer
In DTS Designer, you usually use the Transform Data task to move the data from a source to a destination and to map transformations on the data. However, in this simple example, you copy data from a Northwind table to a second table.
To copy data from a Northwind table using DTS Designer
Usually, you want to reuse a package. When you create and populate a destination table with new data, as in this example, you want to include a step where the package drops and re-creates the destination table prior to its being populated.
The easiest way to accomplish this is:
To configure an Execute SQL task to drop and re-create a destination table
Next, you want to use a precedence constraint to place the completed Execute SQL task correctly in the workflow. In this package, the Execute SQL task is the first workflow step.
To configure workflow in the Execute SQL task
You have created a package consisting of two steps (the Execute SQL task and the Transform Data task). You now run the package, which will:
To execute the package
The Executing DTS Package dialog box appears, providing step and status information for the two steps. The Package Execution Results dialog box then appears.
If the package did not execute successfully, click on the failed step in the Executing DTS Package dialog box for error information, and then check the properties of the objects you created to make sure the information entered is correct.
Lastly, you want to save the package before exiting DTS Designer so it is available for reuse. You can select from several save options.
To save the DTS package to a SQL Server msdb table
This example showed you how to build and run a simple package in DTS Designer. Now that you are familiar with the basics of DTS Designer, you can add DTS transformations, DTS tasks, and precedence constraints to a workflow. For more information, see DTS Package Elements.