简体   繁体   English

C++Builder 是否适用于 MSAccess .accdb 文件?

[英]Does C++Builder work with MSAccess .accdb files?

I am using C++ Builder 10.3.我正在使用 C++ Builder 10.3。 My last version was C++Builder 5 from 20 years ago.我的上一个版本是 20 年前的 C++Builder 5。

My question comes about because I am totally new to this compiler and the Embarcadero blog sites are now 3rd party and not real usable.我的问题出现是因为我对这个编译器完全陌生,而且 Embarcadero 博客站点现在是 3rd 方并且不是真正可用的。

Is it possible to access an MS Access .accdb database with the Interbase tools, or something else that comes standard with this compiler?是否可以使用 Interbase 工具或此编译器的其他标准工具访问 MS Access .accdb数据库? My old version pre-dates .accdb .我的旧版本早于.accdb

FireDAC , which is Embarcadero's latest Database framework, supports connecting to MSAccess databases. FireDAC是 Embarcadero 最新的数据库框架,支持连接到 MSAccess 数据库。

See Connect to Microsoft Access Database (FireDAC) in Embarcadero's DocWiki.请参阅 Embarcadero 的 DocWiki 中的连接到 Microsoft Access 数据库 (FireDAC)

You can connect to MS Access database using ADO (dbGo) components.您可以使用 ADO (dbGo) 组件连接到 MS Access 数据库。 I am not sure if FireDAC is now supported on all editions of C++ Builder (previously, it was not the case).我不确定是否现在所有版本的 C++ Builder 都支持 FireDAC(以前,情况并非如此)。 In case of ADO you would create a connection string that uses Microsoft.ACE.OLEDB.12.0 provider for .accdb database files, or Jet.OLEDB.4.0 provider for older .mdb files.在 ADO 的情况下,您将创建一个连接字符串,该字符串使用 Microsoft.ACE.OLEDB.12.0 提供程序用于.accdb数据库文件,或 Jet.OLEDB.4.0 提供程序用于较旧的.mdb文件。

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

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