I have a dozen parameters that I'm passing to a SqlCommand
. I'm getting a FormatCastException
saying that string cannot be converted to integer. I've checked and re-checked, but I'm sure that all the values I'm passing are real integers.
Maybe I am missing something. That's why I'd like to know which parameter is causing the problem. I've looked at the exception message, but there is no indication about the problematic parameter.
Thanks for helping.