dbTalk Databases Forums  

Insert Date Problem

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


Discuss Insert Date Problem in the microsoft.public.sqlserver.dts forum.



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

Default Insert Date Problem - 03-27-2006 , 04:19 PM






In t-sql, I can insert this date 20050712, to a datetime field, and it works
fine. The date shows up correctlys as 2005-12-07.
When I try to do a data transformation in DTS, using CopyColumn with that
same date, to the same field, I receive an error.
My problem is, I don't always know what the date format is going to be
coming in, so I can't just write an ActiveX Script for that transformation.
But, if it's a valid date field, one would think that SQL would handle it the
same way in DTS as it does in t-sql.
Any thoughts?
--
Mike Voissem
Lead Software Engineer
Donnelley Marketing

Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Insert Date Problem - 04-03-2006 , 09:18 AM






Mike,

I the course of many years of DTS development in our company we came to
realization that SQL task is preferable to Data Pump and the latter should
be avoided. What we do is loading data into staging/temp tables via BCP and
then using SQL to disperse data further. SQL can do all and much more then
Data Pump.

Ilya

"Mike Voissem" <MikeVoissem (AT) discussions (DOT) microsoft.com> wrote

Quote:
In t-sql, I can insert this date 20050712, to a datetime field, and it
works
fine. The date shows up correctlys as 2005-12-07.
When I try to do a data transformation in DTS, using CopyColumn with that
same date, to the same field, I receive an error.
My problem is, I don't always know what the date format is going to be
coming in, so I can't just write an ActiveX Script for that
transformation.
But, if it's a valid date field, one would think that SQL would handle it
the
same way in DTS as it does in t-sql.
Any thoughts?
--
Mike Voissem
Lead Software Engineer
Donnelley Marketing



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.