让人郁闷了好久的问题,终于解决了,之前网上也看到一些解决方法,但大多没有解决问题,所以记录下来,以供参考之用(ADO Could Not Find The Specified Provider)
2006-05-04 15:37
1311 查看
PRB: ERR "ADO Could Not Find The Specified Provider"
View products that this article applies to.Article ID | : | 191271 |
Last Review | : | November 3, 2003 |
Revision | : | 3.1 |
On This Page
SYMPTOMS | ||
CAUSE | ||
RESOLUTION | ||
STATUS | ||
MORE INFORMATION | ||
Steps to Reproduce Behavior | ||
APPLIES TO |
SYMPTOMS
The following error message occurs when trying to connect to SQL Server using ActiveX Data Objects (ADO):ADODB.Connection error '800a0e7a'
ADO could not find the specified provider.
CAUSE
The MSDASQL OLE DB provider is either unavailable or is not registered. This can be caused by an incomplete upgrade or a bad install of the Microsoft Data Access Components (MDAC) components.RESOLUTION
Here are two ways to resolve this problem:• | Register the Msdasql.dll using the following command: REGSVR32 "C:\Program Files\Common Files\System\ole db\MSDASQL.DLL" |
• | Reinstall the Microsoft Data Access Components used. The newest version of MDAC can be downloaded from the following Web site: http://msdn.microsoft.com/library/default.asp?url=/downloads/list/dataaccess.asp (http://msdn.microsoft.com/library/default.asp?url=/downloads/list/dataaccess.asp) |
STATUS
This behavior is by design.MORE INFORMATION
Steps to Reproduce Behavior
1. | Unregister "C:\Program Files\Common Files\System\ole db\Msdasql.dll" using REGSVR32 from the Command line. Here is an example: REGSVR32 -U "C:\Program Files\Common Files\System\ole db\MSDASQL.DLL" |
2. | Try to connect to the PUBS database on SQL Server using ADO. |
APPLIES TO
• | Microsoft Data Access Components 1.5 |
• | Microsoft Data Access Components 2.0 |
• | Microsoft Data Access Components 2.1 |
• | Microsoft Data Access Components 2.8 |
• | Microsoft Data Access Components 2.6 |
• | Microsoft Data Access Components 2.7 |
• | Microsoft Data Access Components 2.8 |
它提供了两种解决方法,
一种是:
• | Register the Msdasql.dll using the following command: REGSVR32 "C:\Program Files\Common Files\System\ole db\MSDASQL.DLL" |
第二种是下载重新安装这个组件:
Reinstall the Microsoft Data Access Components used. The newest version of MDAC can be downloaded from the following Web site:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/dataaccess.asp (http://msdn.microsoft.com/library/default.asp?url=/downloads/list/dataaccess.asp)
其实之前我也下载过一个2.8的版本重新安装过,可是没有起作用。呵呵。所以才郁闷了好久的。
相关文章推荐
- IIS不能访问,出现The specified module could not be found问题 解决方法
- could not find the main class. program will exit问题的解决方法
- ISAPI程序出现“The specified module could not be found”问题解决方法
- 用PL/SQL连接oracle遇到的问题及解决方法:ORA-12154:TNS:could not resolve the connect identifier specified。。
- Could not find the main class: org.apache.hadoop.hdfs.server.namenode.NameNode.解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- Oracle 11g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决!
- Struts2的配置中:Could not find action or result 问题的解决方法
- Struts2的配置中:Could not find action or result 问题的解决方法
- 问题解决:it could not find or load the Qt platform plugin "windows"
- "无法启动Web服务器。Web服务器无法找到请求的资源" 或 "unable to start debugging on the web server.the web server could not find the request"解决方法
- yii框架:CDbConnection failed to open the DB connection: could not find driver的解决的方法
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决!
- SQL Server无法以local 登陆问题的解决方法provider: Named Pipes Provider, error: 40 - Could not open a connection
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决!
- 详解PostgreSQL成功安装oracle_fdw方法,解决the specified procedure could not be found错误
- IIS出现The specified module could not be found解决方法
- 打不开Anaconda Navigator:could not find or load the QT platform plugin "window in"简单解决方法
- IIS出现The specified module could not be found的解决方法
- mySql问题:The user specified as a definer ('root'@'%') does not exist 解决方法