摘要:
一段简单的访问 Access 数据库的测试代码:using System;using System.Data.OleDb;public class DbTest{ public static void Main() { string cnstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db1.mdb"; OleDbConnection cn = null; try { cn = new OleDbConnection(cnstr); cn.Open(); Console.WriteLine("Database 阅读全文