简体   繁体   中英

Microsoft Access Database Engine 2016 Redistributable is not working

Why Microsoft Access Database Engine 2016 Redistributable is not working using the connection string

*string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + sourceFile + ";Driver={Microsoft Access Driver (*.mdb,
*.accdb)};DBQ=path to mdb/accdb file;Extended Properties=\"Excel 8.0;HDR=No;IMEX=1\"";*

It throws an error

"The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine."

and after installing "2007 Office System Driver: Data Connectivity Components" it works fine.

很可能您的应用程序在 32 位模式下运行并且您安装了 64 位驱动程序

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM