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

 找回密码
 注册
搜索

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

[复制链接]
发表于 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, 2022-7-2 07:22 , Processed in 0.023777 second(s), 13 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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