SqlHelper: Parameter count does not match Parameter Value count
I had a call to a ExecuteNonQuery that was giving me the error "Parameter count does not match Parameter Value" count. In my case this error is an incorrect error. No matter how many times I compared the parameters from the ones in the procedure the number was always the same.
In this case the procedure needed a DateTime parameter, but I was incorrectly trying to give it a string. Then it would throw that error. Once I put the correct DateTime parameter type it worked properly.
In this case the procedure needed a DateTime parameter, but I was incorrectly trying to give it a string. Then it would throw that error. Once I put the correct DateTime parameter type it worked properly.
Comments
Post a Comment