Data Transformation Services

DTS Connections

To successfully execute Data Transformation Services (DTS) tasks that copy and transform data, a DTS package must establish valid connections to its source and destination data and to any additional data sources (for example, lookup tables).

Because of its OLE DB architecture, DTS allows connections to data stored in a wide variety of OLE DB-compliant formats. In addition, DTS packages usually can connect to data in custom or nonstandard formats if OLE DB providers are available for those data sources and if you use Microsoft® Data Link files to configure those connections.

DTS allows the following varieties of connections:

Configuring a Connection

When creating a package in the DTS Import/Export Wizard, in DTS Designer, or programmatically, you configure connections by selecting a connection type from a list of available OLE DB providers. The properties you configure for each connection vary depending on the individual provider for the data source.

You can configure a new connection or use an existing one. You can use the same connection multiple times in a package.

Before configuring a connection, consider the following:

To create a connection

Enterprise Manager

Enterprise Manager

Editing a Connection

You can edit existing connections in an existing package only in DTS Designer or programmatically.

If you edit a package in DTS Designer and change the connection properties, DTS Designer attempts to connect to the server you specify. If that server is currently unavailable, DTS Designer does not allow you to change the connection properties through the Connection Properties dialog box. However, there may be reasons you want to circumvent this safety mechanism (for example, if you are configuring or editing a package to be run on a different instance of SQL Server). For those cases, use the Disconnected Edit feature to edit package properties directly. For more information, see Editing DTS Package Properties with Disconnected Edit.

When a package is executing, DTS only makes a connection when the connection is used. DTS does not pre-validate the connections. By default, connections remain open after being used, in case they require reuse. Because connections are not checked, you can set the connection properties dynamically with a Microsoft ActiveX® script (for example, by selecting a server) before making the actual connections.

If there are transformations defined between two connections and you want to change either the source or destination connection, your transformations may no longer be valid. Therefore, DTS Designer prompts you as to whether you want to reset the transformation properties to their defaults. If you decide to reset the transformation, the properties of every transformation associated with the connection are deleted. However, lookups will not be affected.

See Also

DTS Connections in Visual Basic