Access2007连接字符串

<connectionStrings>
    <add name="accdb_vote" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\vote.accdb;Jet OLEDB:Database Password=123456;" providerName="System.Data.OleDb" />
  </connectionStrings>

|DataDirectory|指向文件所在目录"app_data"

你可能感兴趣的:(Access)