SQL COLLATION ISSUES

Biljana Jelić
4 min readMay 9, 2023

If you’ve ever encountered the ‘Cannot resolve the collation conflict’ error message while working in SQL Server Management Studio (SSMS), you know how frustrating it can be.

Collation issues within SSMS can arise when the collation settings of the SQL Server instance and databases are misconfigured or mismatched. In this post, I will delve into the underlying causes of these collation issues and provide effective solutions to help you work more efficiently, minimizing unexpected errors along the way. Let’s start with the real error that can occur:

Cannot resolve the collation conflict between “SQL_Latin1_General_CP1_CI_AS” and “Latin1_General_CI_AS” in the equal to operation.

This error indicates that we are trying to compare two string columns with different collations. In this case, one column has a collation of ‘SQL_Latin_General_CP1_CI_AS’, and the other column has a collation of ‘Latin1_General_CI_AS’. Collation in general refers to the rules that dictate how characters are sorted and compared in a database, so if you try to perform operations such as sorting, searching, or comparing data that have different collations, you may encounter errors like this.

To avoid collation issues, it’s important to ensure that your SQL Server instance and your databases have the same collation settings. You can check the collation settings…

--

--

Biljana Jelić
Biljana Jelić

Written by Biljana Jelić

SQL, SSMS, PL/SQL , Data migration, ETL, Oracle Apex, Python #techgirls

Responses (1)