1
When performing UPDATE in a VARCHAR(4) column using an integer value in the SET clause.
UPDATE TESTE SET ID = 9250 WHERE ID = 1234
Error is returned below:
Conversion failed when Converting the varchar value '???? ' to data type int.
However the error occurs only in one of the servers with SQL Server 2008 R2 the other server that has the identical version does not occur the error, however I could not identify if it has any parameter different from one server to the other. Has anyone ever seen this kind of mistake???
If the column and string vc should assign a string value to it, in this case you are trying to assign an integer value instead of
9250
try'9250'
.– gato
Dener, if I perform this process works, however I wonder why one instance accepts I insert the whole value and the other does not.
– Igor Marani Alves