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
Specify DATABASE_DEFAULT
for the collation of all temp table string columns to use the current database default collation:
CREATE TABLE #tblDocs(
iId INT IDENTITY (1,1),
SID NVARCHAR(50) COLLATE DATABASE_DEFAULT,
iDocumentTypeId INT,
sType NVARCHAR(200) COLLATE DATABASE_DEFAULT,
sEditor NVARCHAR(50) COLLATE DATABASE_DEFAULT
);
For columns that differ from the database default collation, specify the exact column collation instead of DATABASE_DEFAULT
.