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.