Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Difference between Type I and Type II drivers.

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
From java.sun.com:
1.A JDBC-ODBC bridge provides JDBC API access via one or more ODBC drivers. Note that some ODBC native code and in many cases native database client code must be loaded on each client machine that uses this type of driver. Hence, this kind of driver is generally most appropriate when automatic installation and downloading of a Java technology application is not important. For information on the JDBC-ODBC bridge driver provided by Sun, see JDBC-ODBC Bridge Driver.

2.A native-API partly Java technology-enabled driver converts JDBC calls into calls on the client API for Oracle, Sybase, Informix, DB2, or other DBMS. Note that, like the bridge driver, this style of driver requires that some binary code be loaded on each client machine.
ODBC for MS SQL Server is analogous to Oracle Client for Oracle. Then the two types become the same.
Please explain.
Thanks In Advance.
 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
note: I am not sure exactly what you are asking and if my answer is fully correct.
Odbc has overhead and within it you must load the database driver within it. ODBC is a standard and the vendors are supposed to adhere to it, but this may not take advantage of all the databases features.
a native driver should be somewhat similar to the driver loaded into odbc but probably more effecient.
Dan
 
Vishal Saxena
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving Forward,
Like for Type 3 it's over the net protocol and for Type 4 it's over the network protocol, for Type 1 & 2 it is the native calls; 1 would be calling APIs exposed by ODBC and may be some direct DB talk too, 2 would be calling native client APIs; that's what I understand.
Since client(Oracle client et. al) don't follow the ODBC standard, does that distinguish 1 & 2?
May be somebody could name a driver each of every type and also get me the .class file, I can then decompile them and look into what's happening !
regards,
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic