I have a stored procedure that has an insert query with exactly 14 parameters and exactly 14 fields. (counted them several times)
In a function I have exactly 14 Sqlparameters (counted them several times also) with an ExecuteNonQuery method.
The parameters and the method are inside a loop that iterates as many times as the DataSet that sets the values of the parameters.
What happens is that it goes throught the loop one time and successfully inserts the first row of the DataSet and then jumps out with an error message:
It also fails to insert a value of one of the fields that I know for sure has data and is the correct element in the DataSet. The field name is correct in the procedure as well as the parammeter and the datatype and size is also correct
In a function I have exactly 14 Sqlparameters (counted them several times also) with an ExecuteNonQuery method.
The parameters and the method are inside a loop that iterates as many times as the DataSet that sets the values of the parameters.
What happens is that it goes throught the loop one time and successfully inserts the first row of the DataSet and then jumps out with an error message:
Code:
Procedure or function Insert_Table1 has too many arguments specified.
It also fails to insert a value of one of the fields that I know for sure has data and is the correct element in the DataSet. The field name is correct in the procedure as well as the parammeter and the datatype and size is also correct