我正在使用MS Access数据库的连接字符串...
<connectionStrings>
<add name="immigration" connectionString="Data Source=C:\Users\agoyal\Documents\Visual Studio 2010\WebSites\Immigration\DB\immigration.mdb;Integrated security=true" providerName="Microsoft.Jet.OLEDB.4.0"/>
</connectionStrings>
我收到以下错误:
ConnectionString中未指定OLE DB提供程序。一个例子是,&#39;提供商= SQLOLEDB;&#39;。
答案 0 :(得分:1)
尝试
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\agoyal\Documents\Visual Studio 2010\WebSites\Immigration\DB\immigration.mdb;"