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.
Author |
Topic |
shantheguy
Starting Member
22 Posts |
Posted - 2012-04-23 : 05:19:24
|
The following gives the last day of the current month.SELECT DATEADD(D,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+1,0))But when iam trying it in ssis it is not supporting and asking to explicitly convert. how can i convert it into ssis format to retrieve the last day of the current month.Thanks in advance |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-04-23 : 11:52:34
|
where are you trying this in ssis? inside execute sql task or inside derived column task? Latter wont support t-sql and you've to use corresponding SSIS functions to achieve the same------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|