Reputation: 33
I have the following problem. There is conversion problem in my database and this is a message I receive
Conversion failed when converting the varchar value '1589698' to data type int.
It's unusual because there is no extra signs and I work with these data for a long time but suddenly my procedures stopped working today. I tried to use convert and cast. I tried to retyped the number and each time I have the following error.
Upvotes: 1
Views: 1681
Reputation: 118947
As shown by this screenshot:
you have an errant character on the end of the varchar
column. That character is what causes the conversion to fail.
You need to do two things:
Upvotes: 2