Link to home
Start Free TrialLog in
Avatar of rwheeler23
rwheeler23Flag for United States of America

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+MONTH(a.TRXDATE)*100+DAY(a.TRXDATE) >= " + @[User::FiscalPeriod] + (@[User::LoadFuturePer]
 == "Y"?";":" And YEAR(a.TRXDATE)*10000+MONTH(a.TRXDATE)*100+DAY(a.TRXDATE) <=  " + @[User::CurrentPeriod] + ";")

I think it has something to do with the ? and then the positioning of the ()'s.
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Posting some sample data and expected result set would help.
Avatar of rwheeler23

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
Avatar of Jose Torres
Jose Torres
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks