dbTalk Databases Forums  

Data Driven Query - Milliseconds

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


Discuss Data Driven Query - Milliseconds in the microsoft.public.sqlserver.dts forum.



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

Default Data Driven Query - Milliseconds - 04-07-2004 , 03:07 PM






DTS

Transferring data from one table to another using 'Data Driven Query' task
and transformations in VB script with
DTSDestination("MyDate) = DTSSource("MyDate")

both fields are with datatype 'DATETIME'

After the transfer, I noticed - Destination table field (MyDate) is WITHOUT
milliseconds , whereas my Source table field(MyDate) is WITH milliseconds.

Any Thoughts ??

Thanks
S



Reply With Quote
  #2  
Old   
Ross McKay
 
Posts: n/a

Default Re: Data Driven Query - Milliseconds - 04-07-2004 , 03:20 PM






On Wed, 7 Apr 2004 15:07:54 -0500, "MS User" wrote:

Quote:
DTS

Transferring data from one table to another using 'Data Driven Query' task
and transformations in VB script with
DTSDestination("MyDate) = DTSSource("MyDate")

both fields are with datatype 'DATETIME'

After the transfer, I noticed - Destination table field (MyDate) is WITHOUT
milliseconds , whereas my Source table field(MyDate) is WITH milliseconds.
The problem is caused by the conversion of the datetime to a Variant in
VBScript. The conversion chops off the milliseconds:

http://support.microsoft.com/default...EN-US;Q297463&

Discussed in reference to DTS here:

http://groups.google.com/groups?thre...0a% 40phx.gbl

( http://tinyurl.com/3f63m )

cheers,
Ross.
--
"There is more to life than simply increasing its speed." - Mahatma Gandhi


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.