尝试与 Access 2007 数据库建立 JDBC 连接时出现错误。
环境细节Windows 7 64-bit, JRE 7 64-bit, Access 2007 32-bit
::
driver = "sun.jdbc.odbc.JdbcOdbcDriver";
url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="+database+";";
DriverManager.getConnection(url, dbusername, dbpassword);
我收到以下异常
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified