473,513 Members | 8,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Retrieving timestamp with the Universal Driver

klh
I am working with my developer group to switch from the type 2 to the
type 4 (Universal Driver).

Our set up is:
Host Data Base - DB2 z/os v7.1 (mainframe).
Client - DB2 Admin Client V8 FP8 (Windows 2003 advanced server)
The applications are Java based.

They are reporting that when a timestamp column ends with a zero, it
gets truncated when they retrieve it from the database. For instance,
they have a column defined as a timestamp containing a timestamp of
2005-11-30-15.34.08.110140

When they use rs.getString("colname") or rs.getTimestamp("colname")
they get
2005-11-30 15:34:08.11014 (no zero at the end).

Has anyone else experienced this behavior?

Does a timestamp need to be retrieved using a different method for the
type 4 driver?

Thanks for any help,
klh

Dec 1 '05 #1
2 1623
"klh" <kh******@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I am working with my developer group to switch from the type 2 to the
type 4 (Universal Driver).

Our set up is:
Host Data Base - DB2 z/os v7.1 (mainframe).
Client - DB2 Admin Client V8 FP8 (Windows 2003 advanced server)
The applications are Java based.

They are reporting that when a timestamp column ends with a zero, it
gets truncated when they retrieve it from the database. For instance,
they have a column defined as a timestamp containing a timestamp of
2005-11-30-15.34.08.110140

When they use rs.getString("colname") or rs.getTimestamp("colname")
they get
2005-11-30 15:34:08.11014 (no zero at the end).

Has anyone else experienced this behavior?

Does a timestamp need to be retrieved using a different method for the
type 4 driver?

Thanks for any help,
klh

If you are using the type 4 java, I would try the latest version (comes with
FP10). If that does not work, you probably need to open a PMR with IBM
support.
Dec 1 '05 #2
klh
And the answer is ...

I opened up a PMR with IBM. They showed me where this behavior is the
expected behavior for the JDBC drivers. Here is a link to where it is
documented.

http://publib.boulder.ibm.com/infoce...n/r0008474.htm
It was just a surprise to us that the drivers would display the
timestamps in a different format. In the end it wasn't a big deal.
The developers just had to reformat the date in some places.

Hopefully this will help someone else as they convert to the Universal
Drivers.

klh

Dec 9 '05 #3

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

Similar topics

0
1857
by: Priya | last post by:
Hi, I am having some problem with DB2 Universal JDBC driver. 1. The method getColumnType(columnNumber)of ResultSetMetaData always returns zero. 2. The method getColumnDisplaySize(ColumnNum)...
0
3067
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2...
2
3731
by: Raquel | last post by:
Read this about the Universal JDBC Driver.... "In a Type 2 mode, the Universal JDBC driver provides local application performance gains (because it avoids using TCP/IP protocol to communicate to...
2
4451
by: charl | last post by:
Hi, My apologies in advance if my terminology is slightly confused, I am new to all this. We have previously been running some SQL on DB2 (v7) utilising a type 3 driver, and have made the...
2
2596
by: mattdfong | last post by:
I am using mysql to receive stock market rate data, and I have a rate feed which tells me when the rate has changed. I input the data as it comes in, into a mysql database that has both a...
4
11013
by: adbijagare | last post by:
Hi , I am trying to connect to my database through the development centre. In the database connection wizard i m using the followin information Driver : IBM DB2 universal type 2 Database...
1
13194
by: sbanil | last post by:
We have a JAVA application which uses following Database product name : DB2 Database product version : DSN07012 JDBC driver name : IBM DB2 JDBC Universal Driver Architecture JDBC driver version ...
6
1825
by: Chris Burnley | last post by:
We're seeing very strange behaviour with db2 under heavy load. We're running our system in GMT and the timezone never changes for British Summer Time. Basically the thing we're doing is (using...
0
1937
by: rahulj | last post by:
Some of the queries, in our application, have trailing semicolon which works fine when the application uses DB2 CLI Native Driver. But when the driver is changed to DB2 Type 4 Universal Driver an...
0
7254
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
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5079
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
4743
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
3230
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
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.