本文共 564 字,大约阅读时间需要 1 分钟。
// ODBC DSN using System.Data.Odbc; OdbcConnection conn = new OdbcConnection(); conn.ConnectionString = "Dsn=DsnName"; conn.Open(); // Use: sql = "Select * From MyDb.dbf"
// ODBC without DSN using System.Data.Odbc; OdbcConnection conn = new OdbcConnection(); conn.ConnectionString = "Driver={Microsoft dBASE Driver (*.dbf)};" + "Driverid=277;" + "Dbq=C:/MyPath/"; conn.Open(); // Use: sql = "Select * From MyDb.dbf"
转载地址:http://ootqj.baihongyu.com/