Conversion failed when converting the varchar value ‘@parameter’ to data type int or something like this

This is one of the most annoying errors that you now is easy to handle, but always have to google the sollution, because you don’t remember what you did last time to get rid of it.

Stop checking the C# code, the problem is not there. Just remove the quotes from the query string in the stored procedure and it will work just fine:).

Tags: , , ,

Leave a Reply