Access2007 数据库连接

<p>配置文件:</p>
<p>&lt;connectionStrings&gt;</p>
<p>&lt;add name="StrData" connectionString="App_Data/movie.mdb"&gt;<br>&lt;/connectionStrings&gt;</p>
<p>代码调用:</p>
<p>string AC07ConnectionString ="Persist Security Info=False;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + HttpContext.Current.Server.MapPath(ConfigurationManager.ConnectionStrings["StrData"].ConnectionString);</p>
<p></p>

你可能感兴趣的:(Access)