[英]how to open ms access database in system which does not have ms office installed in c++
I have a tool that is developed in C++, it has ms access as a database. 我有一个用C ++开发的工具,它具有ms访问权限作为数据库。 i am using ADODB to access the database.
我正在使用ADODB访问数据库。 The tool works fine with the system which has MS office installed.
该工具可以与已安装MS Office的系统配合使用。
I am trying to run the tool in a system where MS office is not installed. 我试图在未安装MS Office的系统中运行该工具。 The Open db call is failing.
Open db调用失败。
Can you please suggest me any solution for this problem ? 您能建议我解决这个问题的任何方法吗?
The Access application itself is not required for ADODB reading/writing of an Access database, but Office is required. ADODB读/写Access数据库不需要Access应用程序本身,但是Office是必需的。
There are various projects that have had degrees of success in reverse engineering the mdb and accdb formats, but I'm not sure that they're robust enough for regular use. 有许多项目在逆向工程mdb和accdb格式方面取得了成功,但是我不确定它们是否足够健壮以至于可以正常使用。 See MDB Tools or Jackcess
请参阅MDB工具或Jackcess
You might want to consider exporting the tables to a CSV format and then querying those files, or importing them into an alternate database. 您可能要考虑将表导出为CSV格式,然后查询这些文件,或将它们导入备用数据库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.