dbTalk Databases Forums  

DB2 TimeStamp Conversion

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DB2 TimeStamp Conversion in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Frank
 
Posts: n/a

Default DB2 TimeStamp Conversion - 03-03-2004 , 02:06 PM






Hi all,

I have a DB2 query (through an ODBC connection) trying to
pump into a table. Does anyone know what the target side
data type should be for a DB2 TIMESTAMP? I've tried
datetime and smalldatetime?

Thanks,

Mark

Reply With Quote
  #2  
Old   
Jim Young
 
Posts: n/a

Default Re: DB2 TimeStamp Conversion - 03-03-2004 , 02:35 PM






Have you tried extracting it as an varchar value and then converting it?

Jim

"Mark Frank" <mark.a.frank (AT) wellsfargo (DOT) com> wrote

Quote:
Hi all,

I have a DB2 query (through an ODBC connection) trying to
pump into a table. Does anyone know what the target side
data type should be for a DB2 TIMESTAMP? I've tried
datetime and smalldatetime?

Thanks,

Mark



Reply With Quote
  #3  
Old   
sqladmin (Offline)
Junior Member
 
Posts: 1
Join Date: May 2006

Default converting from a temporary import table... - 05-15-2006 , 03:33 PM



well... that would work, but the datatype difference from timestamp
to datetime will still error on you. sql will of course import any thing
under varchar. getting the value into datetime still poses a problem,
and sql will hit you with the same error.

sql does not interpret the db2 'timestamp' format. it's a real pain.

i too am looking for a solution to it.

cheers

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.