This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to connect to Access using the following code (IntegratorDB is already there in system DSN):
It's running fine until the line conn.setTransactionIsolation() is reached and throws an SQLException on this line. Here is the stack trace:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented
I have a limited knowledge on JDBC and don't know why this is happening, any ideas?
The driver doesn't support this optional feature. That's all.
That said, you're using the worst of the both worlds (MS Access as database and ODBC bridge driver as JDBC driver). I recommend replacing both to better choices. If the sole purpose is to have an embedded database, look for JavaDB or consorts. Else just use a real RDBMS like MySQL and consorts. Those databases ships with a decent JDBC driver.