473,466 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DB2Connection.typeMaxVarChar=254??


DB2 Connect version 7.2 to Mainframe

We have one workstation which through JDBC continues to truncate a
VARCHAR column at 254 characters.

We've uninstalled and reinstalled DB2 Connect on this workstation.

Going through a debugger, we can see that
COM.ibm.db2.jdbc.app.DB2Connection has a field called typeMaxVarChar
which is set to 254. Great!

But where is this being set? Can't seem to find this anywhere in the
documentation, or config files.

Help!

Thanks,
Freddy

Nov 12 '05 #1
1 1503
Freddy wrote:
DB2 Connect version 7.2 to Mainframe

We have one workstation which through JDBC continues to truncate a
VARCHAR column at 254 characters.

We've uninstalled and reinstalled DB2 Connect on this workstation.

Going through a debugger, we can see that
COM.ibm.db2.jdbc.app.DB2Connection has a field called typeMaxVarChar
which is set to 254. Great!

But where is this being set? Can't seem to find this anywhere in the
documentation, or config files.

Help!

Thanks,
Freddy


You did not specify which version of Db2 of z/OS you are connecting to. From the
SQL Reference for DB2 for z/OS:

A VARCHAR column with a maximum length that is greater than 255 bytes or a CLOB
column of any length is a long string column.

Is your JDBC application using VARCHAR data type (SQL Type 448) or LONG VARCHAR
data type (SQL type 456)?

Jan M. Nelken
Nov 12 '05 #2

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

Similar topics

0
by: global | last post by:
Hi, can anyone help me I'm on Linux with UDB Runtime-Client 8.1.4 and try to connect to a windows udb-server 8.1.4 via Websphere and jdbc , and get this error: 3e1a29e5 WebGroup E...
5
by: Steffen | last post by:
hi there, i have a problem connecting to a db2 database 7.2.4 on AIX using java when running the javacode on AIX using jdk1.3.1. The classpath is correctly set to java12/... on windows the...
0
by: Bjoern | last post by:
Hi, I'm using NHibernate in my .NET Application to access my DB2 8.1 PE. When I want to start a transaction i always get this error (see below). What I could figure out so far is that I have...
7
by: C.E.O. Gargantua | last post by:
I am using the IBM DB2 Connector class of the Redistributable DB2 Run-Time Client Lite in a c# .net application using Visual Studio. Running the code: string myConnString =...
1
by: Praveen | last post by:
Hi, I have installed WebSphere Portal on AIX and connected to DB2 on a remote machine, Getting the followin errors when trying to get the values from database thru applications installed on...
0
by: Steve Richter | last post by:
I am trying, really trying to use the DB2Connection class provided by IBM to connect to a database on my old reliable as400 from the asp.net web page. When I run the DB2Connection code in my...
20
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am getting an HTTP 500 Internal Server Error page and I am...
14
seraieis
by: seraieis | last post by:
Hi all, I've been working on a few home-grown apps for my department, one of which connects to a DB2 database and generates reports from it. It has worked splendidly on my machine, but this...
0
seraieis
by: seraieis | last post by:
I have a program that, within a BackgroundWorker, runs a small SELECT query from a DB2 Database. The basic form looks like this: BackgroundWorkerFunction(BackgroundWorker b) - open...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.