Exactly what part of it are you having trouble with? The part that makes sure
you get "2010" and "4" no matter what, or the part where you want to load
those two values (whatever they may be) into package variables?
You could write your T-SQL statement as:
SELECT 2010 AS [FY], 4 AS [FM]
but then what is the point of even having the Execute SQL Task?
If you want to load these values into Package Variables, set the Result Set
of the Execute SQL Task to Single Row. Then on the Result Set page, add two
mappings, and name them 0 and 1.
Again, can you explain what you are trying to accomplish?
--
Todd C
MCTS SQL Server 2005
"robboll" wrote:
Quote:
If I have an "Execute SQL Task" with sql that looks like this:
SELECT FLAG FROM "MyDB"."RUNorHOLD"
WHERE FY = '2010' AND PER = '4'
How can I turn '2010' and '4' into variables so it will reflect the
correct year and fiscal month regardless of when the package is run?
This may be easy but it shure has me going.
Thanks,
RBollinger
. |