Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

ADO 提供程序 属性


❮ 连接对象完整参考

Provider 属性设置或返回一个包含特定 Connection 对象提供程序名称的字符串值。默认值为 MSDASQL(Microsoft OLE DB for ODBC 提供程序)。请查看 提供程序代码

当连接关闭时,此属性为读/写属性。

提供程序名称也可以使用 Connection 对象的 ConnectionString 属性或 Open 方法的 ConnectionString 参数来设置。

注意:切勿在一个以上的位置为特定的 Connection 设置提供程序。


语法

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

提供程序代码

提供程序代码 提供程序
ADSDSOObject Active Directory 服务
Microsoft.Jet.OLEDB.4.0 Microsoft Jet 数据库
MSDAIPP.DSO.1 Microsoft Internet 发布
OraOLEDB Oracle 数据库
MSDAOSP 简单文本文件
MSDASQL Microsoft OLE DB for ODBC 提供程序
MSDataShape Microsoft 数据形状
MSPersist 本地保存的文件
SQLOLEDB Microsoft SQL Server

❮ 连接对象完整参考
×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.