简体   繁体   中英

Connecting to ACCDB format MS-ACCESS database through OLEDB

I've recently made another question about connecting to MS-ACCESS database with .NET in C# or VB.NET. It worked just as intended with MDB, but with accdb it caused an exception in

conn.Open();

which follows:

alt text http://dl.dropbox.com/u/3045472/accdb_fail.png

Is there another way to do this? My original intention (like stated in the original question ) is gathering some (actually, a lot of) fields.

使用ACE 4驱动程序, 在此处下载,然后使用以下连接字符串:

"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\marcelo.accdb;Jet OLEDB:Database Password=MyDbPassword;"

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