简体   繁体   English

使用C ++连接到MS Access

[英]Connect to MS Access using c++

I am developing a c++ application, which uses MS Access 2000 (back end database). 我正在开发一个使用MS Access 2000(后端数据库)的c ++应用程序。 What is the best method to communicate with the database. 与数据库通信的最佳方法是什么。

I can see a variety of options in msdn like 我可以在msdn中看到各种选项,例如

ODBC OLEDB DAO (Data Access Object) ODBC OLEDB DAO(数据访问对象)

From the below link, Microsoft says ACE engine should be used to communicate with Access 2007. 微软表示,从下面的链接中可以使用ACE引擎与Access 2007进行通信。

http://msdn.microsoft.com/en-us/library/cc811599.aspx#Ac2007DevelopingSolutions_Overview http://msdn.microsoft.com/zh-cn/library/cc811599.aspx#Ac2007DevelopingSolutions_Overview

Whether ACE engine can be installed in windows xp ??? 是否可以在Windows XP中安装ACE引擎? so that my application can support both MS-Access 2000 and MS-Access 2007. 这样我的应用程序就可以支持MS-Access 2000和MS-Access 2007。

By the way, the application have to be ported to Linux. 顺便说一句,该应用程序必须移植到Linux。 Is that possible to connect Access database from linux ?? 是否可以从Linux连接Access数据库? (application in linux and database in windows) (Linux中的应用程序和Windows中的数据库)

Thanks 谢谢

OLEDB / ADO是Windows上最好的,但是如果您需要移植到Linux并且不想重新编写所有的数据库访问权限,我会坚持使用ODBC。

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

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