共用方式為


ConnectionManagerOdbcClass Class

Definition

Represents a connection manager that connects to a data source using ODBC.

public ref class ConnectionManagerOdbcClass : Microsoft::SqlServer::Dts::Runtime::Wrapper::ConnectionManagerOdbc, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSConnectionManagerDatabaseParameters100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("1EABA520-CAC6-4134-ACC1-C8B2ED261247")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class ConnectionManagerOdbcClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ConnectionManagerOdbc, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManagerDatabaseParameters100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("3D17B9AD-F94B-47C8-92F8-AD713A7BA732")]
public class ConnectionManagerOdbcClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ConnectionManagerOdbc, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManagerDatabaseParameters100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("D4D59D1B-9320-4A38-B663-15549C611270")]
public class ConnectionManagerOdbcClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ConnectionManagerOdbc, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManagerDatabaseParameters100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("1EABA520-CAC6-4134-ACC1-C8B2ED261247")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type ConnectionManagerOdbcClass = class
    interface IDTSConnectionManager100
    interface ConnectionManagerOdbc
    interface IDTSConnectionManagerDatabaseParameters100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("3D17B9AD-F94B-47C8-92F8-AD713A7BA732")>]
type ConnectionManagerOdbcClass = class
    interface IDTSConnectionManager100
    interface ConnectionManagerOdbc
    interface IDTSConnectionManagerDatabaseParameters100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("D4D59D1B-9320-4A38-B663-15549C611270")>]
type ConnectionManagerOdbcClass = class
    interface IDTSConnectionManager100
    interface ConnectionManagerOdbc
    interface IDTSConnectionManagerDatabaseParameters100
Public Class ConnectionManagerOdbcClass
Implements ConnectionManagerOdbc, IDTSConnectionManagerDatabaseParameters100
Inheritance
ConnectionManagerOdbcClass
Attributes
Implements

Remarks

For more information, see ConnectionManager.

Constructors

ConnectionManagerOdbcClass()

Initializes a new instance of the ConnectionManagerOdbcClass class.

Properties

ConnectionString

Gets or sets the connection string used to establish a connection to a data source.

InitialCatalog

Gets or sets the initial catalog for the connection.

Password

Gets or sets the password for the connection.

ProtectionLevel

Gets or sets the level of encryption performed on sensitive data that is contained in the package.

RetainSameConnection

Gets or sets a Boolean that indicates whether the connection manager retains the same connection.

Scope

Gets the scope of the connection manager.

ServerName

Gets or sets the server name.

SupportsDTCTransactions

Gets a Boolean that indicates whether the connection supports Microsoft Distributed Transaction Coordinator (MS DTC) transactions.

UserName

Gets or sets the username for the connection.

Methods

AcquireConnection(Object)

Creates an instance of the connection type.

GetConnectionForSchema()

Gets the connection for the schema.

ReleaseConnection(Object)

Frees the connection established during AcquireConnection(Object). Called at design time and runtime.

SetQualifier(String)

Changes a qualifier on the connection manager after the connection manager has been created but before it is used in a running package.

Validate(IDTSInfoEvents100)

Validates the connection and returns an enumeration that indicates success or failure.

Applies to