连接字符串:String connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=product.mdb";
建立连接:OleDbConnection connection = new OleDbConnection(connectionString);
使用OleDbCommand类来执行Sql语句:OleDbCommand cmd = new OleDbCommand(sql, connection);connection.Open();
就是一个字符串,可以参考下,有什么错误可以上网查下