Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:00 AM
yongsing
Guest
 
Posts: n/a
Default How to change to an older JDBC driver

I have a Windows 2000 Server machine that runs DB2 UDB v7 fixpak 11. I
also have a Java program that uses JDBC to insert data into the
database.

Sometimes, the program encounters SQL0302N error ("The value of a host
variable in the EXECUTE or OPEN statement is too large for its
corresponding use", SQLSTATE=22001) when it tries to insert a
particular data into a table.

On my notebook, if I run the same program with the same data (and same
Java Runtime Environment 1.4.2), the program can insert the data
successfully into the database on the Windows 2000 Server machine. The
only difference is that my notebook's DB2 v7 is using a lower fixpak
than fixpak 11.

Therefore, I am suspecting that the new JDBC driver that comes with
fixpak 11 is causing the SQL error when the program runs on the
server.

I would like to try using the same JDBC driver on the server as on my
notebook. I know that I need to change db2java.zip file to the same
version as the one my notebook. What other file do I need to change? I
seem to remember that there's a particular DLL file that I need to
change as well.

Thanks in advance.

Yong Sing
  #2  
Old November 12th, 2005, 09:00 AM
Fan Ruo Xin
Guest
 
Posts: n/a
Default Re: How to change to an older JDBC driver

I thought it is db2jdbc.dll.

"yongsing" <ohyongsing@yahoo.com.sg> wrote in message
news:59fdb1b8.0407220221.1491036c@posting.google.c om...[color=blue]
> I have a Windows 2000 Server machine that runs DB2 UDB v7 fixpak 11. I
> also have a Java program that uses JDBC to insert data into the
> database.
>
> Sometimes, the program encounters SQL0302N error ("The value of a host
> variable in the EXECUTE or OPEN statement is too large for its
> corresponding use", SQLSTATE=22001) when it tries to insert a
> particular data into a table.
>
> On my notebook, if I run the same program with the same data (and same
> Java Runtime Environment 1.4.2), the program can insert the data
> successfully into the database on the Windows 2000 Server machine. The
> only difference is that my notebook's DB2 v7 is using a lower fixpak
> than fixpak 11.
>
> Therefore, I am suspecting that the new JDBC driver that comes with
> fixpak 11 is causing the SQL error when the program runs on the
> server.
>
> I would like to try using the same JDBC driver on the server as on my
> notebook. I know that I need to change db2java.zip file to the same
> version as the one my notebook. What other file do I need to change? I
> seem to remember that there's a particular DLL file that I need to
> change as well.
>
> Thanks in advance.
>
> Yong Sing[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.