Cannot resolve collation conflict for equal to operation.
The error comes when the collation type of the columns to be compared does not match or conflict.
For example if this query gives above error.
select *
from usertable
where loginname = cust_no
To resolve this problem, collate database_default needs can be added arround "=" operator. Like below.
select *
from usertable
where loginname collate database_default = cust_no collate database_default
Labels: SQL Server
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment