简体   繁体   English

通过OLEDB连接到ACCDB格式的MS-ACCESS数据库

[英]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. 我最近提出了另一个关于在C#或VB.NET中使用.NET连接MS-ACCESS数据库的问题 It worked just as intended with MDB, but with accdb it caused an exception in 它与MDB一样正常工作,但是使用accdb它会导致异常

conn.Open();

which follows: 其中包括:

alt text http://dl.dropbox.com/u/3045472/accdb_fail.png 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;"

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

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