Connecting to ACCDB format MS-ACCESS database through OLEDB

前端 未结 1 623
野趣味
野趣味 2020-12-15 11:08

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 excep

相关标签:
1条回答
  • 2020-12-15 11:45

    Use ACE 4 driver, download it here then use following connection string:

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

    0 讨论(0)
提交回复
热议问题