w3pop.com :: 网络学院 :: ADO :: ADO Provider 属性
The Provider property sets or returns a string value that contains the provider name for a specific Connection object. Default is MSDASQL (Microsoft OLE DB provider for ODBC). Look at Provider Codes
Provider属性的作用是:设置或返回包含详细连接对象的技术提供对象[provider]名称的字符串值。默认值为MSDASQL(Microsoft OLE DB provider for ODBC)。请参照Provider代码。
This property is read/write when the connection is closed.
当连接被关闭时,该属性是可读/可写的。
The provider name can also be set with the ConnectionString property of the Connection object or the ConnectionString parameter of the Open method.
技术提供对象的名称可以通过Connection对象中的ConnectionString属性进行设置,或者通过Open方法中的ConnectionString参数进行设置。
Note: Never set the provider for a specific Connection in more than one place.
注意:不要在多处为详细连接设置技术提供对象[provider]。
connobj.Provider |
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"
response.write(conn.Provider) conn.close %> |
| Provider Code 技术提供对象[Provider] 代码 |
Provider 技术提供对象 |
|---|---|
| ADSDSOObject | Active Directory Services 动态目录服务 |
| Microsoft.Jet.OLEDB.4.0 | Microsoft Jet databases 微软Jet数据库 |
| MSDAIPP.DSO.1 | Microsoft Internet Publishing 微软Internet 公共脚本接口 |
| MSDAORA | Oracle databases Oracle 数据库 |
| MSDAOSP | Simple text files 简单文本文件 |
| MSDASQL | Microsoft OLE DB provider for ODBC 微软的ODBC “OLE DB技术提供对象” |
| MSDataShape | Microsoft Data Shape 微软Data[数据]型 |
| MSPersist | Locally saved files 本地存储文件 |
| SQLOLEDB | Microsoft SQL Server 微软SQL数据库服务器 |
评论 (0)
All