日期:2014-05-16 浏览次数:20441 次
String driver = "com.hxtt.sql.paradox.ParadoxDriver"; String url = "jdbc:paradox:/E:\\pdb\\Events"; Class.forName(driver); Connection con = DriverManager.getConnection(url,"user","pwd");
String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url = "jdbc:odbc:数据源名"; Class.forName(driver); Connection con = DriverManager.getConnection(url,"user","pwd");
String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url = "jdbc:odbc:driver={Microsoft Paradox Driver (*.db )};" \+"DriverID=538;Fil=Paradox 5.x;DefaultDir=E:\\pdb\\Events;" \+"Dbq=E:\\pdb\\Events;CollatingSequence=ASCII"; Class.forName(driver); Connection con = DriverManager.getConnection(url,"user","pwd");