0

Will code that communicates with a Ms Access 2007 database work with a Ms Access 2003 database as well? And vice versa. How compatible is all the JDBC stuff with different versions?

Thanks.

1
  • As long as you're not using any of the features added in ACCDB format in A2007, it should be fine. That means no multi-value fields, no attachment fields, no auto-apend memos, etc. Commented Jul 10, 2011 at 2:38

4 Answers 4

1

There is an odbc-jdbc bridge, so Java can connect to everything you can setup an ODBC driver to.

Of course, the drivers mostly just "pass" the SQL to the database, so if your code used querys specific of a database they will work on that database but won't on anything else.

Sign up to request clarification or add additional context in comments.

Comments

0

Although SQL is a standard, db vendors provide "extra" functionality that is not necessarily standard. Depends on your usage. I am not an expert in MS Access, but I would say assume it is not compatible until you are able to prove that it is

Comments

0

It would depend on your jdbc driver, but as long as you're not doing any vender specific calls, (ie: custom types for cursors or vender specific sql) you shouldn't have any problems.

So to answer your question, the jdbc code will port, but the sql may not.

Comments

0

Is the MS Access 2007 database in ACCDB format? If so you need to use the appropriate ACE driver. Now this will work just against an Access 2003 format database file so long as ACE is installed on the client system. If not then you'll want to use Jet 4.0 which is part of every Windows OS since Windows 2000.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.