Click here to Skip to main content
15,882,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Error:-

Conversion failed when converting the varchar value 'CO7' to data type int.
Posted
Comments
Sebastian T Xavier 5-Jun-12 8:06am    
There is an issue with datatype. please post your code.

First of all this is not an ASP.Net error message. It looks like SQL Server error message.

And from the message itself, it is very clear. You are trying to convert CO7 to datatype INT. This will never go correct.
 
Share this answer
 
Comments
CPallini 5-Jun-12 8:11am    
'This will never go correct.'
CO7 is the base-25 representation of the 8107 base-10 number.
:-)
Manas Bhardwaj 5-Jun-12 8:49am    
:)
That's not all an obscure error: "C07" is a string (varchar in a database), not a number (int in your programming language). You do something wrong here:
- are table columns correctly mapped to program variables?
- are program variables correctly defined?
- was the database correctly designed?
 
Share this answer
 
Comments
Manas Bhardwaj 5-Jun-12 9:01am    
correct +5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900