连接access 2007时,会出现下面的error
The 'Microsoft.ACE.OleDb.12.0' provider is not registered on the local machine.
我已经在网上验证了我的链接串是正确的.
Provider=Microsoft.ACE.OleDb.12.0;Data Source=path + abc.accdb;Persist Security Info=False
那么问题出在哪里呢?
后来在MSDN上看到同样的错误
因为我的机器安装的是64位的系统,
将项目build的目标改为X86,问题解决.
在项目中option->build->platform target: select x86