数据库连接字符串 - dBase Dbf
ODBC DSN
// 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
// 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" |