如何在安装了Access 2013或更高版本的计算机上打开1997 mdb文件 [英] How do I open 1997 mdb file on a machine with access 2013 or newer installed

查看:850
本文介绍了如何在安装了Access 2013或更高版本的计算机上打开1997 mdb文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个主要使用Access ACCDB文件的C#应用​​程序。它必须从较旧的应用程序导入旧的1997格式MDB文件。



我正在安装Access Engine for Access 2010,因为较新版本的Access无法打开旧版本1997格式的MDB文件,我的应用程序需要导入。这在干净的操作系统上工作得很好但是如果用户安装Access 2013或更新版本他们会收到无法打开使用以前版本的应用程序创建的数据库错误。



我尝试过:



我读了一篇文章说安装数据库引擎for Access 2007将解决这个问题。这实际上确实有效,但我不想告诉客户尝试它,因为我不知道它为什么会起作用。



有什么想法吗?

解决方案

您不必安装任何东西。使用随Windows安装的OLEDB驱动程序。

这是Access 2.0(!)调整引擎类型以适应Jet 37 for Access 97的示例:



 <   add    名称  =  ClientBill.Properties .Settings.FinConnectionString  

< span class =code-attribute> connectionString = Provider = Microsoft.Jet.OLEDB.4.0;数据源= R:\Test \Fin.mdb;用户ID = Admin; Jet OLEDB:系统数据库= R:\Test \ System.mda; Jet OLEDB:引擎类型= 3; Jet OLEDB:数据库锁定模式= 0 ; Jet OLEDB:Mode = Share Deny None

providerName = < span class =code-keyword> System.Data.OleDb / >


I have a C# application that mainly uses Access ACCDB files. It does have to import old 1997 format MDB files from an older application though.

I am installing the Database Engine for Access 2010 because newer versions of Access cannot open the old 1997 format MDB files, which my app needs to import. This works just fine on a clean OS but if a user installs Access 2013 or newer They get a "Cannot open a database created with a previous version of your application" error.

What I have tried:

I read an article that said installing Database Engine for Access 2007 will fix this problem. This actually does work, but I don't want to tell our customers to try it because I have no idea why it works.

Any ideas?

解决方案

You shouldn't have to install anything. Use the OLEDB driver installed with Windows.
This is an example for Access 2.0(!) Adjust Engine Type to fit Jet 3.5 for Access 97:

<add name="ClientBill.Properties.Settings.FinConnectionString"

            connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=R:\Test\Fin.mdb;User ID=Admin;Jet OLEDB:System database=R:\Test\System.mda;Jet OLEDB:Engine Type=3;Jet OLEDB:Database Locking Mode=0;Jet OLEDB:Mode=Share Deny None"

            providerName="System.Data.OleDb" />


这篇关于如何在安装了Access 2013或更高版本的计算机上打开1997 mdb文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆