I'm trying to use "Execute SQL Task" in SSIS to get a value to be stored in a user variable. The documentation says to use '?' as a placeholder for parameters in the query but when I do I get a syntax error trying to parse the query. So the query is like this:
SELECT ? = AVG(Score) FROM Scorecards
I've also tried adding OUTPUT after the '?'. All examples I can find for having an output parameter are similar to
EXEC ? = MyStoredProc param1, param2, ...
This isn't of any use though since I'm not using a stored proc. The use of the parameter seems similar though so why won't SSIS take it for a select statement?