I'm writing a Java application. In short, this application needs to connect to DB2 on an AS/400 for some SQL data. I cannot find a straightforward comparison of ODBC and JDBC.
Do any of you know where I can find one?
Or, have any of you done java programming with the intent to connect to AS/400 SQL data, and if you have, should I simply ignore ODBC because JDBC is native to both java and DB2?
Thanks in advance!
-Schmidtw
Software/Hardware used:
ASKED:
June 18, 2009 1:49 PM
UPDATED:
April 19, 2013 8:17 PM
Depending on the environment, one of the differences could be performance.
If you expect a considerable amount of database transactions to be performed by your application, you might want to make some testing to determine which performs better under heavy loads.
In this case I would probably choose JDBC.
Another way of looking at this is:
ODBC is language independent.
JDBC is written specifically for Java.