I have an EXECUTE SQL TASK within a FOR EACH LOOP over an ADO recordset.
I want to use a parameter in the EXECUTE SQL TASK from an ADO recordset column. To be precise, I want execute this command:-
I have set the ParameterMapping properties on the EXECUTE SQL TASK as:-
VariableName: USer::MyCol2
Direction: Input
DataType: VARCHAR
ParameterNAme : MyParam
The problem is, I get the error 'parameter name is unrecognized' when I run the package. I have tried '?' on it's own instead of the @MyParam but this doesn't work either. Can anybody spot where I am going wrong with the parameter comparisson/definition?
Dazed and confused
I want to use a parameter in the EXECUTE SQL TASK from an ADO recordset column. To be precise, I want execute this command:-
Code:
UPDATE MySQLTable
SET Column1 = 'X'
WHERE Column2 = @MyParam
I have set the ParameterMapping properties on the EXECUTE SQL TASK as:-
VariableName: USer::MyCol2
Direction: Input
DataType: VARCHAR
ParameterNAme : MyParam
The problem is, I get the error 'parameter name is unrecognized' when I run the package. I have tried '?' on it's own instead of the @MyParam but this doesn't work either. Can anybody spot where I am going wrong with the parameter comparisson/definition?
Dazed and confused