I am guessing you are trying to loop through different databases using the SP with a parameter in SSIS. However you could do this with a Select Command From variable source:
- Create a new Variable -
SELECT_OUTPUT_MI_Tyep12
for instance (String Type); - Within the variable properties check
EvaluateAsExpression = True
; Under the Expression use the following:
SELECT [M12] ,[T3Size] ,[SizeVCost] ,NULL as [DefaultTonnage] ,NULL as [IdleCost] ,NULL as [SuperLocoID] ,[IfAllowFleetSizeVio] FROM [ServN\\PROD2].[Scenario_" + @[User::DBNameParameter] + "_PRD].[dbo].[Para_LTYPE]
Change the
@[User::DBNameParameter]
for your specific one;- Use the SQL Command from variable in the connection manager, selecting the
SELECT_OUTPUT_MI_Tyep12
variable.
This should allow you to gather all the Meta data back from the table and carry on with the rest of the data flow.