大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索
打印 上一主题 下一主题

[解决] 连connect .accdb C#. “Unrecognized database format” 错误

[复制链接]
跳转到指定楼层
1#
发表于 2014-2-20 09:04:12 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[解决] 连connect Microsoft Access database .accdb in C#. Error “Unrecognized database format” 错误
  1. string dataBaseName = "Provider=Microsoft.Ace.OLEDB.12.0; Data Source=C:\\MyDB.accdb;Persist Security Info=False;"; //Defines the location of the database and its type. 你的数据库地点要放好
复制代码
还是错误?
1. Uninstall Microsoft Office
2. Uninstall 所有 Access Run Time 2007, 2010 etc

然后,顺序安装回去
1. 2007 Office System Driver: Data Connectivity Components
http://www.microsoft.com/en-us/download/details.aspx?id=23734

2. Microsoft Access Database Engine 2010 Redistributable 32bit / 6bit (我全安装32的)
http://www.microsoft.com/en-sg/download/details.aspx?id=13255

3. Install回你的Ms Office

手机版|大马资讯论坛  

GMT+8, 2024-12-1 14:28 , Processed in 0.080073 second(s), 11 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表