简体   繁体   English

Microsoft Access 2007连接

[英]Microsoft Access 2007 Connection

I wrote a program that connected to a Microsoft Access 2000/2003 mdb file and accesses the data. 我编写了一个程序,该程序连接到Microsoft Access 2000/2003 mdb文件并访问数据。 It works fine, but I'm wondering if there is a way to connect to Access 2007? 它工作正常,但是我想知道是否有一种方法可以连接到Access 2007? If I change my connection string, will my program work with access 2007 or is it more complicated then that? 如果更改连接字符串,我的程序可以在Access 2007中使用还是更复杂? And if it will work, can someone provide an example of an Access 2007 database? 并且,如果它可以工作,是否有人可以提供Access 2007数据库的示例?

You will need to download the 2007 Office System Driver: Data Connectivity Components (doesn't require Access 2007 installed). 您将需要下载2007 Office System驱动程序:数据连接组件 (不需要安装Access 2007)。 Then changing the connection string to point to the Access 2007 database should be sufficient. 然后更改连接字符串以指向Access 2007数据库就足够了。

Useful site: ConnectionStrings 有用的站点: ConnectionStrings

Your question is very poorly worded. 您的问题措辞很差。 Access 2007 offers two different file format, the traditional MDB format, and the ACCDB format. Access 2007提供了两种不同的文件格式,即传统的MDB格式和ACCDB格式。 If you use MDB format, then you don't need any additional drivers, as it's the same format in 2007 as in previous versions (and might be compatible back to Access 2000, since that's the default format for all versions from Access 2000 to 2003). 如果使用MDB格式,则不需要任何其他驱动程序,因为它在2007年的格式与以前版本中的格式相同(并且可能与Access 2000兼容,因为这是从Access 2000到2003的所有版本的默认格式)。 You need the additional data connectivity components if you choose the ACCDB format. 如果选择ACCDB格式,则需要其他数据连接组件。 There is little reason to do so, as most of the new features of ACCDB are there in order to be compatible with Sharepoint. 这样做没有什么理由,因为ACCDB的大多数新功能都可以与Sharepoint兼容。

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

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