Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 3.76 KB

File metadata and controls

56 lines (38 loc) · 3.76 KB
title ADO Connection Manager
description ADO Connection Manager
author chugugrace
ms.author chugu
ms.date 03/14/2017
ms.service sql
ms.subservice integration-services
ms.topic concept-article
helpviewer_keywords
connections [Integration Services], ADO
connection managers [Integration Services], ADO
ADO connection manager [Integration Services]

ADO Connection Manager

[!INCLUDEsqlserver-ssis]

An ADO connection manager enables a package to connect to ActiveX Data Objects (ADO) objects, such as a recordset. This connection manager is typically used in custom tasks written in an earlier version of a language, such as Microsoft Visual Basic 6.0, or in custom tasks that are part of an existing application that uses ADO to connect to a data source.

When you add an ADO connection manager to a package, [!INCLUDEmsCoName] [!INCLUDEssNoVersion] [!INCLUDEssISnoversion] creates a connection manager that will resolve to an ADO connection at run time, sets the connection manager properties, and adds the connection manager to the Connections collection on the package. The ConnectionManagerType property of the connection manager is set to ADO.

Troubleshooting the ADO Connection Manager

When being read by an ADO connection manager, certain [!INCLUDEssNoVersion] date data types will generate the results shown in the following table.

SQL Server Data type Result
time, datetimeoffset The package fails unless the package uses parameterized SQL commands. To use parameterized SQL commands, use the Execute SQL Task in your package. For more information, see Execute SQL Task and Parameters and Return Codes in the Execute SQL Task.
datetime2 The ADO connection manager truncates the millisecond value.

Note

For more information about [!INCLUDEssNoVersion] data types and how they map to [!INCLUDEssISnoversion] data types, see Data Types (Transact-SQL) and Integration Services Data Types.

Configuring the ADO Connection Manager

You can configure an ADO connection manager in the following ways:

  • Provide a specific connection string configured to meet the requirements of the selected provider.

  • Depending on the provider, include the name of the data source to connect to.

  • Provide security credentials as appropriate for the selected provider.

  • Indicate whether the connection that is created from the connection manager is retained at run time.

You can set properties through [!INCLUDEssIS] Designer or programmatically.

For more information about the properties that you can set in [!INCLUDEssIS] Designer, click the following topic:

For information about configuring a connection manager programmatically, see xref:Microsoft.SqlServer.Dts.Runtime.ConnectionManager and Adding Connections Programmatically.

See Also

Integration Services (SSIS) Connections