Difference between ODBC and JDBC?
10495 pts.
0
Q:
Difference between ODBC and JDBC?
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
ASKED: Jun 18 2009  1:49 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
1840 pts.
0
A:
 RATE THIS ANSWER
-1
Click to Vote:
  •   0
  •  -1
  • AddThis Social Bookmark Button
ODBC is for microsoft and JDBC is for java.
JBDC is portable across platforms where ODBC is not.

see the following for more information:
http://archive.devx.com/dbzone/articles/dd_jdbc/sosinsky-2.asp
http://www.discussweb.com/java-programming/3890-difference-between-jdbc-odbc.html


Also, a qucik google search shows 32,900 hits for "Difference between ODBC and JDBC".

http://www.google.com/search?hl=en&q=Difference+between+ODBC+and+JDBC&btnG=Google+Search&aq=f&oq=&aqi=


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

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 initialism 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
Last Answered: Sep 24 2009  1:45 PM GMT by Meandyou   1840 pts.
Latest Contributors: Schmidtw   10495 pts., Teandy   3190 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Carlosdl   29750 pts.  |   Jun 19 2009  2:36PM GMT

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.

 
0