简体   繁体   English

将 .mdb 数据库迁移到 .accdb (Pyodbc)

[英]Migrating .mdb database to .accdb (Pyodbc)

I try to convert an old MS Access database with the file-extension ".mdb" to the newer ".accdb"-format.我尝试将文件扩展名为“.mdb”的旧 MS Access 数据库转换为较新的“.accdb”格式。 I got the idea of using Pyodbc because the newer versions of MS Access refuse to open the old file.我有了使用 Pyodbc 的想法,因为较新版本的 MS Access 拒绝打开旧文件。 So far I succeeded in connecting to the.mdb and reading the table-names from the old file with Pyodbc.到目前为止,我已成功连接到 the.mdb 并使用 Pyodbc 从旧文件中读取表名。 Is there a way to connect to the.mdb, grab its contents and save it to a.accdb or maybe copying the data.table by table into an empty.accdb?有没有办法连接到 the.mdb,获取其内容并将其保存到 a.accdb 或者可能将 data.table 按表复制到空的.accdb 中?

Thanks in advance!提前致谢!

Create a new accdb database and import all objects from the old mdb format.创建一个新的 accdb 数据库并从旧的 mdb 格式导入所有对象。 This should usually work.这通常应该有效。

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

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