Using TSQL to run the same .dtsx package multiple times, and changing the @pSourcedir parameter on each run. Problem is the below example throws the below error. Parameter exists when DTSExecUI, can be modified as usual and works as expected.
Any ideas what I am doing wrong (NB: I'm sysadmin on this instance)
Msg 27176, Level 16, State 1, Procedure set_execution_parameter_value, Line 148
The parameter '@pSourceDir' does not exist or you do not have sufficient permissions.
Believe these 3 stored procedures will enable me to run ssis packages while supplying a parameter. Only problem is the method throws the below error about a string. Any ideas?
The data type of the input value is not compatible with the data type of the 'String'.
Msg 27176, Level 16, State 1, Procedure set_execution_parameter_value, Line 718
The parameter 'pSourceDir' does not exist or you do not have sufficient permissions.
I tried same code that u used to run my package
Can you please help me ?
One more question ... Do we have to manually create the same variable in the SSIS package in Visual studio before running this in SSMS ?