We have a situation where the collation of databases, tables, and some columns are different between our dev and production SQL Servers, and it\'s wreaking havoc on developm
Generally, use "COLLATE DATABASE_DEFAULT" on temp table, table variables etc
Collation conflicts usually happen you have server vs database collation conflicts, server in this case being tempdb.
Frankly, I would make an effort to align your collations and have them all one per database.
If you have mix and match across servers, databases and columns then there is no magic bullet. You could start by looking for all COLLATE clauses in code (see above) followed by ensuring all columns have collation removed....