Messages with severity level 12 indicate a problem with datatypes. For example, the user may have tried to enter a value of the wrong datatype in a column or to compare columns of different and incompatible datatypes.
To correct comparison problems, use the convert function with select. For information on convert, see the Reference Manual or the Transact-SQL User’s Guide.