dbTalk Databases Forums  

Sql 2k5 DTS Date Transformation

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


Discuss Sql 2k5 DTS Date Transformation in the microsoft.public.sqlserver.dts forum.



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

Default Sql 2k5 DTS Date Transformation - 10-08-2004 , 04:23 PM






I am trying to find a transformation object that does the
same thing as a sql2k DTS Date Transformation (IE within a
datapump)

I have a datetime field, and I am trying to extract the
value and change the date format. For example I would like
to specify the output to be yyyymmdd. I could use use a
derived column object and perform datepart functions, but
it seems like an awful lot of work to do something this
common.


Any suggestions would be appreciated.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Sql 2k5 DTS Date Transformation - 10-09-2004 , 06:59 AM






Is this all from SQL Server?

If yes then could you not specift something like this in your statement

SELECT......... CONVERT(CHAR(8),Getdate(),112)....................



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"rmartinez" <rmartinez (AT) procard (DOT) com> wrote

Quote:
I am trying to find a transformation object that does the
same thing as a sql2k DTS Date Transformation (IE within a
datapump)

I have a datetime field, and I am trying to extract the
value and change the date format. For example I would like
to specify the output to be yyyymmdd. I could use use a
derived column object and perform datepart functions, but
it seems like an awful lot of work to do something this
common.


Any suggestions would be appreciated.



Reply With Quote
  #3  
Old   
rmartinez
 
Posts: n/a

Default Re: Sql 2k5 DTS Date Transformation - 10-11-2004 , 08:51 AM



I understand I can do it if I use a query to extract the
dataset.
I am trying to figure out how to do it using sql2005's dts
transformation objects.


Quote:
-----Original Message-----
Is this all from SQL Server?

If yes then could you not specift something like this in
your statement

SELECT......... CONVERT(CHAR(8),Getdate
(),112)....................



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"rmartinez" <rmartinez (AT) procard (DOT) com> wrote in message
news:2f1601c4ad7d$0228ebd0$a601280a (AT) phx (DOT) gbl...
I am trying to find a transformation object that does the
same thing as a sql2k DTS Date Transformation (IE
within a
datapump)

I have a datetime field, and I am trying to extract the
value and change the date format. For example I would
like
to specify the output to be yyyymmdd. I could use use a
derived column object and perform datepart functions,
but
it seems like an awful lot of work to do something this
common.


Any suggestions would be appreciated.


.


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

Default Re: Sql 2k5 DTS Date Transformation - 11-05-2004 , 01:13 PM



In message <40e501c4af99$71e0ee00$a601280a (AT) phx (DOT) gbl>, rmartinez
<rmartinez (AT) procard (DOT) com> writes
Quote:
I understand I can do it if I use a query to extract the
dataset.
I am trying to figure out how to do it using sql2005's dts
transformation objects.


Derived column or Script Transform would be my choices.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.