Ask the Expert

Difference between JDBC drivers

We are currently using the JDBC driver (COM.ibm.db2.jdbc.app.DB2Driver) that comes with DB2 Connect to retrieve data from our iSeries. We discovered that in order to use this driver, we have to specify in the SQL statement the library that the file(s) are located in. We would like the library list to be used to find the file(s). We know that the JDBC driver that comes with the iSeries Toolkit for Java (com.ibm.as400.access.AS400JDBCDriver) can use the library list and we have it working in another application.

A third party provider was telling us we needed DB2 Connect for this particular application. My question: Is there any significant difference between these two JDBC drivers? I guess the driver that comes with DB2 Connect is called a "Type 2" driver, but I'm not sure if that is significant or not.


The Type 2 driver vs. the iSeries type 4 JDBC driver should not matter. There are probably some minor differences between the JDBC driver like the library list support issue that you have already discovered. However, I'm not aware of any differences that would prevent a third-party application from using the Toolbox JDBC driver. I would ask the third-party provider to tell you why they cannot the Toolbox JDBC driver -- my guess is that they have not taken the time to test with the Toolbox JDBC driver. There were some rare cases in the past where DB2 Connect had to be used instead of the iSeries middleware, but those deficiencies were eliminated.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Search400.com's targeted search engine: Get relevant information on DB2/400.

The Best Web Links: tips, tutorials and more.

Check out this online event, Getting the Most out of SQL & DB2 UDB for the iSeries.


This was first published in January 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to: