August 1, 2016 at 8:49 am
this is my tsql expression: DATEADD(dd, DATEDIFF(dd, 0, GETDATE()) - 1, 0)
when i try to copy same expression to a variable. It throws error saying datediff not recognised.
How to write same expression in ssis ?
August 1, 2016 at 9:01 am
Use the SSIS syntax.
DATEADD("dd", DATEDIFF("dd", (DT_DATE) "1900-01-01", GETDATE()) - 1, (DT_DATE) "1900-01-01")
August 1, 2016 at 5:11 pm
Luis Cazares (8/1/2016)
Use the SSIS syntax.
DATEADD("dd", DATEDIFF("dd", (DT_DATE) "1900-01-01", GETDATE()) - 1, (DT_DATE) "1900-01-01")
Or, use a stored procedure to do the actual work and have SSIS call it. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply