问题描述
我和其他许多人一样遇到了无法从使用 Microsoft.Jet.OLEDB.4.0 的 64 位计算机访问 Microsoft Access(MDB 文件)的问题.
I have like many others the problem that I can't access Microsoft Access (MDB Files) from my 64 bit machine using Microsoft.Jet.OLEDB.4.0.
我知道它没有 64 位版本,我需要针对 x86 编译它.
I know that there's no 64bit version of it, and that I need to compile it against x86.
所以我的问题是:您知道其他支持 64 位访问的 Microsoft Access 的 .NET Providers 吗?
So my question is:Do you know any other .NET Providers for Microsoft Access that supports 64bit access?
推荐答案
要获得 64 位 Microsoft Access 驱动程序,请下载 Microsoft Access 数据库引擎 2010 可再发行版.您无法在安装了 32 位版本的 Microsoft Office 的情况下安装它.
To get 64 bit Microsoft Access drivers download the Microsoft Access Database Engine 2010 Redistributable. You cannot install that with a 32 bit version of Microsoft Office installed.
该驱动程序的 ODBC 连接字符串是 "Driver={{Microsoft Access Driver (*.mdb, *.accdb)}};Dbq=%FILE_NAME%;Uid=Admin;Pwd=;"代码>.该驱动程序的 OleDb 连接字符串是
"Provider=Microsoft Office 12.0 Access Database Engine OLE DB Provider;Data Source=%FILE_NAME%;User Id=admin;Password=;
.
The ODBC connection string with that driver is "Driver={{Microsoft Access Driver (*.mdb, *.accdb)}};Dbq=%FILE_NAME%;Uid=Admin;Pwd=;"
. The OleDb connection string for that driver is "Provider=Microsoft Office 12.0 Access Database Engine OLE DB Provider;Data Source=%FILE_NAME%;User Id=admin;Password=;
.
这篇关于替代 Microsoft.Jet.OLEDB.4.0 以对 MDB 文件进行 64 位访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!