I have a piece of code in my stored procedure as below -
update tblexpwitretrocmdocs set sCheckedOut = A.sEditor, idone = 0
from #tblDocs A
JOIN tblexpwitretroc
To resolve the collation conflict add "COLLATE DATABASE_DEFAULT" keywords around “=” operator as shown below:
UPDATE tblexpwitretrocmdocs SET sCheckedOut = A.sEditor, idone = 0
FROM #tblDocs A
JOIN tblexpwitretrocmdocs B ON A.SID = B.SID
WHERE A.iDocumentTypeId in (16,17,13,11) COLLATE DATABASE_DEFAULT
AND A.sid COLLATE DATABASE_DEFAULT NOT IN
(SELECT SID COLLATE DATABASE_DEFAULT FROM tblexpwitdocumentgeneral)
Hope this helps...