Difference between ODBC and JDBC?

11330 pts.
Tags:
AS/400
Database
Development
IBM DB2
Java applications
JDBC
ODBC
SQL
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

ODBC is for microsoft and JDBC is for Java.
JBDC is portable across platforms where ODBC is not.

See the following for more information:

Also, a quick Google search shows 32,900 hits for “Difference between ODBC and JDBC”.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thank you. I have seen all of those in my search already. I guess I was just looking for something more technical in nature and less forum style.

I appreciate it!

-Schmidtw

=======================
ODBC is for lots more than just MicroSoft products. ODBC is the initial ism for Open Data Base Connectivity (or Communication).

Up above it says ODBC is not portable across platforms. Not knowing exactly what is meant, I don’t want to arbitrarily disagree, but ODBC can be used between many different platforms including other than MicroSoft, e.g. UNIX, OS/400, LINUX, even OS/2 used ODBC.

There are many times when JDBC & ODBC will work together to bridge the gap between separate hardware and operating systems and different data bases.

Meandyou

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    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.
    70,220 pointsBadges:
    report
  • Edljr319
    Another way of looking at this is: ODBC is language independent. JDBC is written specifically for Java.
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following