Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 CURRENT DATE

Author  Topic 

saiabhiram
Starting Member

17 Posts

Posted - 2010-05-03 : 13:50:19
How to get a current date in SSIS derived column. Also how can I add a day to the current date.

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2010-05-03 : 13:55:40
getdate() should work in SSIS.

To get currentday + 1 , you can use this

(DT_WSTR,30)(DT_DBDATE)(dateadd("d",1,getdate()))
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-05-04 : 03:59:19
or you can use @[System::StartTime] variable

(DT_WSTR, 10) (DT_DBDATE) DATEADD( "d", 1, @[System::StartTime] )

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -