简体   繁体   English

c# 无法打开数据库 - Windows 10 Access 2016

[英]c# Cannot open Database - Windows 10 Access 2016

I make ac# form that read and write data to a Microsoft Access Database.我制作了 ac# 表单来读取和写入数据到 Microsoft Access 数据库。 It worked when i had windows 8.1 with access 2013 .当我有Windows 8.1 with access 2013时它工作。 Then i had install windows 10 with access 2016 and the same program return this error: Cannot open database ''.然后我安装了带有访问权限 2016Windows 10 ,并且同一程序返回此错误:无法打开数据库''。 It may not be a database that your application recognizes, or the file may be corrupt.它可能不是您的应用程序识别的数据库,或者文件可能已损坏。 The file isn't corrupt (i can open it with access).该文件没有损坏(我可以使用访问权限打开它)。 The file is small then 2GB (500 KB).该文件很小,只有 2GB (500 KB)。 How can I solve?我该如何解决?

Try installing the Access 2013 runtime .尝试安装Access 2013 运行时

From Microsoft:来自微软:

The Microsoft Access 2013 Runtime enables you to distribute Access 2013 applications to users who do not have the full version of Access 2013 installed on their computers. Microsoft Access 2013 运行时使您能够将 Access 2013 应用程序分发给未在其计算机上安装完整版 Access 2013 的用户。

This should install the appropriate OLEDB drivers for you that you used to have on your old OS.这应该会为您安装旧操作系统上的相应 OLEDB 驱动程序。

密码太长,我用少于13个字符的密码解决了

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

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