2003連接語法如下:
@"Provider=Microsoft.Jet.OLEDB.4.0;Data source= C:\.....\test.mdb";
2007連接語法如下:
@"Provider=Microsoft.ACE.OLEDB.12.0;Data source= C:\....\test.accdb;Persist Security Info=False;"
參考文章:
http://msdn.microsoft.com/zh-tw/library/cc437979(v=vs.71).aspx
http://stackoverflow.com/questions/508345/c-sharp-how-to-connect-to-ms-access-2007