时间:2021-07-01 10:21:17 帮助过:13人阅读
64位链接
this.connstring = string.Format("Provider = Microsoft.ACE.OLEDB.12.0 ;Data Source ={0};Extended Properties=dBASE IV;", filePath); this.Connection = new OleDbConnection(connstring);
32位链接
this.connstring = string.Format("Provider = Microsoft.Jet.OLEDB.4.0 ;Data Source ={0};Extended Properties=dBASE IV;", filePath); this.Connection = new OleDbConnection(connstring);
基本代码
this.Connection = new OleDbConnection(connstring); OleDbCommand dc = Connection.CreateCommand(); Connection.Open(); dc.CommandText = Sql; int count = dc.ExecuteNonQuery(); Connection.Close(); dc.Dispose();
c# 通过 OLEDB连接Access,DBF。
标签:access dbconnect source code down creat man ext 连接