dbTalk Databases Forums  

urgent: Import DB2 Timestamp into SQL 2k5

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


Discuss urgent: Import DB2 Timestamp into SQL 2k5 in the microsoft.public.sqlserver.dts forum.



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

Default urgent: Import DB2 Timestamp into SQL 2k5 - 10-06-2005 , 09:16 AM






Hi all,
I am importing a DB2 table using DTS to a SQL server 2K5.
The problem is DB2 timestamp is 10 bytes and sql datetime is still 8 bytes.
what are my options if i don't want to loose the precision?
Have any body tried this before? Please comment
I think of following possibilities:
1. varchar(26) : I've already have thought about and ruled this one out.
2. split this data into a SQL date (datetime) and another column storing
just the microsecond part (int)
3. Create a udf and store the data as bigint?
Which one is the best approach and why? any other ideas?

Thanks in advance!
Utpal


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.