ConnectionManagerOdbcClass 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示一个连接管理器,通过 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
- 继承
-
ConnectionManagerOdbcClass
- 属性
- 实现
注解
有关详细信息,请参阅 ConnectionManager。
构造函数
| 名称 | 说明 |
|---|---|
| ConnectionManagerOdbcClass() |
初始化 ConnectionManagerOdbcClass 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| ConnectionString |
获取或设置用于建立与数据源连接的连接字符串。 |
| InitialCatalog |
获取或设置连接的初始目录。 |
| Password |
获取或设置连接密码。 |
| ProtectionLevel |
获取或设置对包中包含的敏感数据执行的加密级别。 |
| RetainSameConnection |
获得或设置一个布尔值,指示连接管理器是否保留相同的连接。 |
| Scope |
它获得了连接管理器的范围。 |
| ServerName |
获取或设置服务器名称。 |
| SupportsDTCTransactions |
获得一个布尔值,指示连接是否支持 Microsoft 分布式事务处理协调器(MS DTC)事务。 |
| UserName |
获取或设置连接的用户名。 |
方法
| 名称 | 说明 |
|---|---|
| AcquireConnection(Object) |
创建连接类型的实例。 |
| GetConnectionForSchema() |
它能获得模式的连接。 |
| ReleaseConnection(Object) |
释放在 期间 AcquireConnection(Object)建立的连接。 在设计时和运行时调用。 |
| SetQualifier(String) |
在连接管理器创建后但在运行包中使用之前,修改连接管理器中的限定符。 |
| Validate(IDTSInfoEvents100) |
验证连接并返回表示成功或失败的枚举。 |