Hi. I’m new to MyEclipse.
I’m trying to connect to an MS Access DB (resident on the local machine) through a servlet.
url = "jdbc:odbc:db";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection(url);
however i get :
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
when i deploy it and access it.
the same url however seems to work fine with DBexplorer.
do i need to change my code? or do i need to access the table through DBexplorer? if so, how.
—
Ahmad