rwheeler23
asked on
SSIS Scripting syntax
Where can I find documentation on the proper syntax for SSIS scripting? I have this Where clause which needs to make a decision based on the value of User::LoadFuturePer. I have tested this and it will fail in one place if the value is 'N' and in another place if the value is 'Y' so my thinking is the syntax of this statement is wrong.
WHERE YEAR(a.TRXDATE)*10000+MONT H(a.TRXDAT E)*100+DAY (a.TRXDATE ) >= " + @[User::FiscalPeriod] + (@[User::LoadFuturePer]
== "Y"?";":" And YEAR(a.TRXDATE)*10000+MONT H(a.TRXDAT E)*100+DAY (a.TRXDATE ) <= " + @[User::CurrentPeriod] + ";")
I think it has something to do with the ? and then the positioning of the ()'s.
WHERE YEAR(a.TRXDATE)*10000+MONT
== "Y"?";":" And YEAR(a.TRXDATE)*10000+MONT
I think it has something to do with the ? and then the positioning of the ()'s.
Posting some sample data and expected result set would help.
ASKER
I need to go back to the original developer. I have discovered that if the date is specified as YYYYMM it works as opposed to YYYYMMDD. I need to find out what the original logic was.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks