Quantcast
Channel: Questions in topic: "ssis"
Viewing all articles
Browse latest Browse all 813

How to get yesterday's date using ActiveXScript in SSIS

$
0
0
I have this script in activeX but i am encountering this error message when i ran the package, can anyone please help me on this? i am a newbie in SSIS, thanks!! Function Main() Main = DTSTaskExecResult_Success DTSGlobalVariables("User::src_date").Value ="(DT_STR,4,1252)YEAR(DATEADD("dd", -1, GETDATE())) + RIGHT("0" + (DT_STR,2,1252)MONTH(DATEADD("dd", -1, GETDATE())),2) + RIGHT("0" + (DT_STR,2,1252)DAY(DATEADD("dd", -1, GETDATE())),2)"" End Function

Viewing all articles
Browse latest Browse all 813

Trending Articles