How to check the collation
SELECT
col.name, col.collation_name
FROM
sys.columns col
WHERE
object_id = OBJECT_ID('User')
Solution:
SELECT ID
FROM UserMapping
INNER JOIN User
WHERE UserId COLLATE DATABASE_DEFAULT
= UserMappingUserID COLLATE DATABASE_DEFAULT
No comments:
Post a Comment