Actually I am working on a Java application that requires an ODBC.
I created the database ms Access and the class connection is working but when I try to add a table in the database an exception appears:
java.sql.SQLException: [Microsoft][Pilote ODBC Microsoft Access] Impossible de modifier la structure de la table ??personne??. La base de donn?es est en lecture seule.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6956)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7113)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3109)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:337)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:252)
at inventaire.NewClass1.main(NewClass1.java:28)
The database is on mode read only.
How can I set the database read and write?
The ODBC-JDBC bridge should be avoided when possible.
Remember, while setting the dsn, set the readonly to 0.
Heres an example on how to work with JDBC-ODBC with MS Access (its not complete)
http://www.mundayweb.com/progs/jdbc-odbc-tut.php
The driver list:
http://devapp.sun.com/product/jdbc/drivers/search_results.jsp?jdbc_version=0&vendor_name=&cert_mode=and&jdbc_driver_type_mode=and&dbms=6&dbms_mode=and&features_mode=and&results_per_page=20&submit=Search
As jere indicated, some drivers need to be explicitly defined & in this case could be ReadOnly=False, Some drivers need a password to edit the database.
regards