473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

VB vs JAVA

sea
I have 2 applications, one a Microsoft Visual Basic application and
the other a Java application both connecting to the same DB2 database.
The database has binary LOB objects. The Visual Basic application uses
ODBC bridge and the Java application uses JDBC app driver. Inorder for
the VB application to correctly load and display the LoB objects, I
need to set the long object binary treatment in db2 client
configuration assistant to longvar data. But for the Java application
to run using the app driver the long object binary treatment needs to
be set to LOB.

Question is, how can I run the two applications, one using odbc and
the other using jdbc app driver on the same client computer?

Thank you very much
Nov 12 '05 #1
5 3772
Set it to work for the java app and use a connection string in the VB
app that include LONGDATACOMPAT=1. That's what we did. If you need to
the whole connection string, I can provide it.

On 18 May 2004 16:03:36 -0700, se*****@hotmail.com (sea) wrote:
I have 2 applications, one a Microsoft Visual Basic application and
the other a Java application both connecting to the same DB2 database.
The database has binary LOB objects. The Visual Basic application uses
ODBC bridge and the Java application uses JDBC app driver. Inorder for
the VB application to correctly load and display the LoB objects, I
need to set the long object binary treatment in db2 client
configuration assistant to longvar data. But for the Java application
to run using the app driver the long object binary treatment needs to
be set to LOB.

Question is, how can I run the two applications, one using odbc and
the other using jdbc app driver on the same client computer?

Thank you very much


Nov 12 '05 #2
sea
Thank you so very much for your tip, this would REALLY help - yes,
could you please send the complete connection string, if this is not
too much of a trouble? You can either reply to this board, or email me
at se*****@hotmail.com. Thank you again!

================================================== =========================
kurt.wood@NO**@M.state.mn.us (Remove the obvious for replies) wrote in message news:<40**************@news.state.mn.us>...
Set it to work for the java app and use a connection string in the VB
app that include LONGDATACOMPAT=1. That's what we did. If you need to
the whole connection string, I can provide it.

On 18 May 2004 16:03:36 -0700, se*****@hotmail.com (sea) wrote:
I have 2 applications, one a Microsoft Visual Basic application and
the other a Java application both connecting to the same DB2 database.
The database has binary LOB objects. The Visual Basic application uses
ODBC bridge and the Java application uses JDBC app driver. Inorder for
the VB application to correctly load and display the LoB objects, I
need to set the long object binary treatment in db2 client
configuration assistant to longvar data. But for the Java application
to run using the app driver the long object binary treatment needs to
be set to LOB.

Question is, how can I run the two applications, one using odbc and
the other using jdbc app driver on the same client computer?

Thank you very much

Nov 12 '05 #3
Here you go (btw, I am assuming VB6)..

The old one using ODBC
= "Driver={IBM DB2 ODBC DRIVER};Database=" & msDBName &
";DSN=;UID=;PWD=;" & _
"AUTOCOMMIT=1;EARLYCLOSE=0;LOBMAXCOLUMNSIZE=104857 5;LONGDATACOMPAT=1;"
& _
"CURSORHOLD=1;DBALIAS=" & msDBName & ";PATCH1=1408;PATCH2=6"

The new one using the OLEDB provider (UDB 8.1.4)

= "Provider=IBMDADB2;Database=" & msDBName & ";DSN=;UID=;PWD=;" & _

"AUTOCOMMIT=1;EARLYCLOSE=0;LOBMAXCOLUMNSIZE=104857 5;LONGDATACOMPAT=1;"
& _
"CURSORHOLD=1;DBALIAS=" & msDBName &
";PATCH1=1408;PATCH2=6"
That should do it for you!
On 19 May 2004 21:18:20 -0700, se*****@hotmail.com (sea) wrote:
Thank you so very much for your tip, this would REALLY help - yes,
could you please send the complete connection string, if this is not
too much of a trouble? You can either reply to this board, or email me
at se*****@hotmail.com. Thank you again!

================================================= ==========================
kurt.wood@NO**@M.state.mn.us (Remove the obvious for replies) wrote in message news:<40**************@news.state.mn.us>...
Set it to work for the java app and use a connection string in the VB
app that include LONGDATACOMPAT=1. That's what we did. If you need to
the whole connection string, I can provide it.

On 18 May 2004 16:03:36 -0700, se*****@hotmail.com (sea) wrote:
>I have 2 applications, one a Microsoft Visual Basic application and
>the other a Java application both connecting to the same DB2 database.
>The database has binary LOB objects. The Visual Basic application uses
>ODBC bridge and the Java application uses JDBC app driver. Inorder for
>the VB application to correctly load and display the LoB objects, I
>need to set the long object binary treatment in db2 client
>configuration assistant to longvar data. But for the Java application
>to run using the app driver the long object binary treatment needs to
>be set to LOB.
>
>Question is, how can I run the two applications, one using odbc and
>the other using jdbc app driver on the same client computer?
>
>Thank you very much


Nov 12 '05 #4
sea
Thank you so very much -- this really helps, I had no idea you could
set this value within VB6!

One more question -- if I have two separate runtime clients connecting
to the same remote db server, with the longdatacompat variable of each
runtime client configured differently to match the vb and java app
driver requirements, will this be another possible solution to the
problem?

Thank you again!

================================================== ==================

kurt.wood@NO**@M.state.mn.us (Remove the obvious for replies) wrote in message news:<40**************@news.state.mn.us>...
Here you go (btw, I am assuming VB6)..

The old one using ODBC
= "Driver={IBM DB2 ODBC DRIVER};Database=" & msDBName &
";DSN=;UID=;PWD=;" & _
"AUTOCOMMIT=1;EARLYCLOSE=0;LOBMAXCOLUMNSIZE=104857 5;LONGDATACOMPAT=1;"
& _
"CURSORHOLD=1;DBALIAS=" & msDBName & ";PATCH1=1408;PATCH2=6"

The new one using the OLEDB provider (UDB 8.1.4)

= "Provider=IBMDADB2;Database=" & msDBName & ";DSN=;UID=;PWD=;" & _

"AUTOCOMMIT=1;EARLYCLOSE=0;LOBMAXCOLUMNSIZE=104857 5;LONGDATACOMPAT=1;"
& _
"CURSORHOLD=1;DBALIAS=" & msDBName &
";PATCH1=1408;PATCH2=6"
That should do it for you!
On 19 May 2004 21:18:20 -0700, se*****@hotmail.com (sea) wrote:
Thank you so very much for your tip, this would REALLY help - yes,
could you please send the complete connection string, if this is not
too much of a trouble? You can either reply to this board, or email me
at se*****@hotmail.com. Thank you again!

================================================= ==========================
kurt.wood@NO**@M.state.mn.us (Remove the obvious for replies) wrote in message news:<40**************@news.state.mn.us>...
Set it to work for the java app and use a connection string in the VB
app that include LONGDATACOMPAT=1. That's what we did. If you need to
the whole connection string, I can provide it.

On 18 May 2004 16:03:36 -0700, se*****@hotmail.com (sea) wrote:

>I have 2 applications, one a Microsoft Visual Basic application and
>the other a Java application both connecting to the same DB2 database.
>The database has binary LOB objects. The Visual Basic application uses
>ODBC bridge and the Java application uses JDBC app driver. Inorder for
>the VB application to correctly load and display the LoB objects, I
>need to set the long object binary treatment in db2 client
>configuration assistant to longvar data. But for the Java application
>to run using the app driver the long object binary treatment needs to
>be set to LOB.
>
>Question is, how can I run the two applications, one using odbc and
>the other using jdbc app driver on the same client computer?
>
>Thank you very much

Nov 12 '05 #5
If I understand your question, I think you are asking if you could
install 2 Clients on the same workstation, each with it's own
db2cli.ini settings ?

If that is your question, I think the answer is no. I don't think you
can have two clients on 1 box without conflicting.

On 20 May 2004 11:39:40 -0700, se*****@hotmail.com (sea) wrote:
Thank you so very much -- this really helps, I had no idea you could
set this value within VB6!

One more question -- if I have two separate runtime clients connecting
to the same remote db server, with the longdatacompat variable of each
runtime client configured differently to match the vb and java app
driver requirements, will this be another possible solution to the
problem?

Thank you again!

================================================= ===================

kurt.wood@NO**@M.state.mn.us (Remove the obvious for replies) wrote in message news:<40**************@news.state.mn.us>...
Here you go (btw, I am assuming VB6)..

The old one using ODBC
= "Driver={IBM DB2 ODBC DRIVER};Database=" & msDBName &
";DSN=;UID=;PWD=;" & _
"AUTOCOMMIT=1;EARLYCLOSE=0;LOBMAXCOLUMNSIZE=104857 5;LONGDATACOMPAT=1;"
& _
"CURSORHOLD=1;DBALIAS=" & msDBName & ";PATCH1=1408;PATCH2=6"

The new one using the OLEDB provider (UDB 8.1.4)

= "Provider=IBMDADB2;Database=" & msDBName & ";DSN=;UID=;PWD=;" & _

"AUTOCOMMIT=1;EARLYCLOSE=0;LOBMAXCOLUMNSIZE=104857 5;LONGDATACOMPAT=1;"
& _
"CURSORHOLD=1;DBALIAS=" & msDBName &
";PATCH1=1408;PATCH2=6"
That should do it for you!
On 19 May 2004 21:18:20 -0700, se*****@hotmail.com (sea) wrote:
>Thank you so very much for your tip, this would REALLY help - yes,
>could you please send the complete connection string, if this is not
>too much of a trouble? You can either reply to this board, or email me
>at se*****@hotmail.com. Thank you again!
>
>================================================= ==========================
>
>
>kurt.wood@NO**@M.state.mn.us (Remove the obvious for replies) wrote in message news:<40**************@news.state.mn.us>...
>> Set it to work for the java app and use a connection string in the VB
>> app that include LONGDATACOMPAT=1. That's what we did. If you need to
>> the whole connection string, I can provide it.
>>
>> On 18 May 2004 16:03:36 -0700, se*****@hotmail.com (sea) wrote:
>>
>> >I have 2 applications, one a Microsoft Visual Basic application and
>> >the other a Java application both connecting to the same DB2 database.
>> >The database has binary LOB objects. The Visual Basic application uses
>> >ODBC bridge and the Java application uses JDBC app driver. Inorder for
>> >the VB application to correctly load and display the LoB objects, I
>> >need to set the long object binary treatment in db2 client
>> >configuration assistant to longvar data. But for the Java application
>> >to run using the app driver the long object binary treatment needs to
>> >be set to LOB.
>> >
>> >Question is, how can I run the two applications, one using odbc and
>> >the other using jdbc app driver on the same client computer?
>> >
>> >Thank you very much


Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.