网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: ADO :: ADO Provider 属性

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

ADO Provider 属性


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:1518 :: ::

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]。

Syntax
语法

connobj.Provider

Example
案例

<%
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 Codes

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