dbTalk Databases Forums  

DTS Going From DateTime to VarChar - Format Change, Help!

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


Discuss DTS Going From DateTime to VarChar - Format Change, Help! in the microsoft.public.sqlserver.dts forum.



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

Default DTS Going From DateTime to VarChar - Format Change, Help! - 12-05-2005 , 03:15 PM






Trying to use the DTS Wizard to Import data from one table into another. The
problem is that the source table has DateTime data and I have to fit it into
a VarChar column. The problem is that the DTS Wizard is changing the format
of my data so that source column data 12/30/2005 becomes 2005-12-30. I have
to keep the data in 12/30/2005 format. Does anyone know how to force DTS to
format the data that way?

Thank you!

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: DTS Going From DateTime to VarChar - Format Change, Help! - 12-05-2005 , 04:21 PM






PSRDCJIM wrote:
Quote:
Trying to use the DTS Wizard to Import data from one table into another. The
problem is that the source table has DateTime data and I have to fit it into
a VarChar column. The problem is that the DTS Wizard is changing the format
of my data so that source column data 12/30/2005 becomes 2005-12-30. I have
to keep the data in 12/30/2005 format. Does anyone know how to force DTS to
format the data that way?

Thank you!
Simplest way would be to use a source query, and convert before it hits
DTS, so DTS just transfers the varchar data. No risk of DTS or anything
else getting confused.

The reason why it ends up in that format will be some "client" date
format setting.

--
Darren
http://www.sqldts.com
http://www.sqlis.com


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.