VBScript & Access MDB - 800A0E7A - “Provider cannot be found. It may not be properly installed”

喜欢而已 提交于 2019-11-26 22:57:51

run script with SysWOW64 version
C:\Windows\SysWOW64\wscript.exe or cscript
instead of the default 64bit version from C:\Windows\System32

On Microsoft TechNet Configuring IIS to Run 32-bit Applications on 64-bit Windows (IIS 6.0):

To enable IIS to run 32-bit applications on 64-bit Windows:

  1. Open a command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts directory.
  2. Type the following command:

    cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 "true"
    
  3. Press ENTER.

Alternatively, via Internet Information Services (IIS) Manager:

  1. Access Application Pools
  2. Right click on "ASP.NET v4.0 Classic"
  3. Select "Set Application Pool Defaults ..."
  4. Under General change "Enable 32-Bit Applications" from "False" to "True"
  5. Click OK

If you wish to run both 32-bit and 64-bit applications, there's various blogs to do it, such as Rakki Muthukumar's blog IIS7 - Running 32-bit and 64-bit ASP.NET versions at the same time on different worker processes.

Alternatively, via Internet Information Services (IIS) Manager:

Access Application Pools Right click on "ASP.NET v4.0 Classic" Select "Set Application Pool Defaults ..." Under General change "Enable 32-Bit Applications" from "False" to "True" Click OK

When I change this settings it is worked. thank you guys.. :)

Just use

strConnect = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source= "

if you 've all needed drivers

DimDqkov

Check this out

EDIT: Warning, the link below goes straight to a download of 2007 Office System Driver: Data Connectivity Components.

http://www.microsoft.com/download/en/confirmation.aspx?id=23734

Installed it, read the instruction and everything worked as a charm.

harry

I used this it worked for me without any error:

sconnect = "Provider=MSDASQL.1;DSN=Excel Files;DBQ=" & myPath & ";HDR=Yes';"
Set con = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")

con.Open sconnect
sSQLQry = "SELECT * FROM [" & tableName & "];"
Set rs = con.Execute(sSQLQry)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!