简体   繁体   English

C#转ms访问数据库

[英]C# to ms access database

I got an shown in the below image on my connection between my ms access database and my c# windows form application,error says that我在我的 ms access 数据库和我的 c# windows 窗体应用程序之间的连接中得到了一个显示在下图中,错误说

"The 'Microsoft.ACE.OLDB.12.0' is not registered to local machine" “'Microsoft.ACE.OLDB.12.0' 未注册到本地机器”

visual studio2015 and ms access2016 i'm an amateur Visual Studio2015 和 ms access2016 我是业余爱好者

在此处输入图片说明

Having recently dealt with this myself, I believe you need the Microsoft Access Database Engine 2010 Redistributable https://www.microsoft.com/en-us/download/details.aspx?id=13255最近自己处理了这个问题,我相信您需要Microsoft Access Database Engine 2010 Redistributable https://www.microsoft.com/en-us/download/details.aspx?id=13255

You have two options:您有两个选择:

  1. 32-bit version (AccessDatabaseEngine.exe) 32 位版本 (AccessDatabaseEngine.exe)
  2. 64-bit version (AccessDatabaseEngine_x64.exe) 64 位版本 (AccessDatabaseEngine_x64.exe)

You cannot install both at once.您不能同时安装两者。 If you are targeting for the x86 platform, install the 32-bit version.如果您的目标是 x86 平台,请安装 32 位版本。 If you are targeting for the x64 platform or AnyCPU, install the 64-bit version.如果您的目标是 x64 平台或 AnyCPU,请安装 64 位版本。

Have you installed office 2016 data connectivity components ?您是否安装了 Office 2016 数据连接组件 If not please install the same.如果没有,请安装相同的。 You could get more details on the below links您可以通过以下链接获得更多详细信息

Stack Overflow link 堆栈溢出链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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