Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2008

Tip: Looking for answers? Try searching our database.

Timestamps in a Windows Environment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rdpratti - 27 Jan 2008 00:03 GMT
I am working with DB2 LUW after being away for a few years. Most of my
experinece is in the z/Os environment.

I am noticing the millisecond-only timestamps and trying to remember
if there is a way to get DB2 to insert the actual microseconds in
timestamps.

Thanks

- Roland
Mark A - 27 Jan 2008 02:51 GMT
>I am working with DB2 LUW after being away for a few years. Most of my
> experinece is in the z/Os environment.
[quoted text clipped - 6 lines]
>
> - Roland

You can get microseconds in Linux or UNIX, but not Windows.

But in DB2 you can use TIMESTAMP(GENERATE_UNIQUE()) to give a guaranteed
unique timestamp,even when inserting multiple rows within a single SQL
statement.
Serge Rielau - 27 Jan 2008 12:29 GMT
>> I am working with DB2 LUW after being away for a few years. Most of my
>> experinece is in the z/Os environment.
[quoted text clipped - 6 lines]
> unique timestamp,even when inserting multiple rows within a single SQL
> statement.
In other words. DB2 depends on the services of the OS. In Windows that's
pretty rough (hence the steps of 7ms when you do "ping").

Cheers
Serge
Signature

Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.