数据库连接字符串
2007的驱动是要单独下载、安装的
http://www.microsoft.com/downloads/details.aspx?familyid=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=zh-cn (25.4MB)
下载驱动程序
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\work\users.accdb;Persist Security Info=False
<connectionStrings> <add name="Access2003" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\City.mdb;Password=" providerName="System.Data.OleDb"/>
<add name="ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\sexSystem.mdb;Password=" providerName="System.Data.OleDb"/>
<add name="Access2007" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\myData.accdb;Persist Security Info=False"/>
<add name="connectionStrings3" connectionString="Data Source =.;Initial Catalog =pages;Integrated Security =True;Persist Security Info = True;User ID=sa;Password=*********"/>
<add name="connectionStrings2" connectionString="server=(local);uid=sa;pwd=*******;database=user1"/> </connectionStrings>