简体   繁体   中英

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. i am using ADODB to access the database. The tool works fine with the system which has MS office installed.

I am trying to run the tool in a system where MS office is not installed. The Open db call is failing.

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.

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. See MDB Tools or 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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