You can use a Convert() function in the procedure itself, however, it is more likely that you are passing in some sort of Alpha character with the numeric value.
The reason being, if i pass in the value
1234 enlclosed in ' ' is the same as passing in the value of 1234; the ' ' just denote it as a string instead of an int value.
In your case, its a little different since you are using a paramertized query and you are not having to deal with ' ' so check the value of your variable.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========