摘要:
下面以Access为例:string path = "D:\\newdb.accdb"; OleDbConnection conn = new OleDbConnection();string sql = "select * from News ";conn.ConnectionString = string.Format("Provider=Microsoft.ACE.OLEDB.12.0;; Data Source={0}; ", path);OleDbCommand comm = new OleDbCommand(sql,con 阅读全文