SDU Tools: List Mismatched Database Collations in SQL Server
Anyone who’s worked with SQL Server for any length of time has probably run into collation issues. They will have seen something like this:
SQL Server Error: Cannot resolve the collation conflict
In many cases, it will be a difference between the collation in tempdb and their own database, they’ve created temporary tables, and tried to join them to tables in their database. And it goes bang !
While you can fix it in the query by specifying a COLLATE clause, it’s a pain in the neck. If you use temp tables, you really should have this when working with them so your application isn’t dependent upon the server’s collation.
2018-11-14
