Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I am trying to join tables of different warehouses present on same server but with different collation property and getting the follwoing error:
What are the best practices to perform join between tables present in different warehouses but same server with different collation property?
Solved! Go to Solution.
Please refer this thread :
https://stackoverflow.com/questions/20544392/how-to-fix-a-collation-conflict-in-a-sql-server-query
Hi PriyaJha,
We have not received a response from you regarding the query and were following up to check if you have found a resolution. If you have identified a solution, we kindly request you to share it with the community, as it may be helpful to others facing a similar issue.
If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.
Thank you.
Hi @PriyaJha,
Thank you for reaching out through the Microsoft Fabric Community Forum.
The error message indicates that there are two different collations in use. It is important to make them the same before performing a JOIN operation. This error occurs because the server mandates that collations for string comparisons, such as those in joins, must be identical.
Below are some best practices to resolve this issue:
Choose one of the existing collations or create a new one that suits both tables.
Latin1_General_CI_AS – Case-insensitive and accent-sensitive.Modify the SQL query to use the COLLATE clause and explicitly specify the same collation for both columns in the JOIN condition:
SELECT * FROM Table1 t1 JOIN Table2 t2 ON t1.ColumnName COLLATE Latin1_General_CI_AS = t2.ColumnName COLLATE Latin1_General_CI_AS;
ALTER TABLE Table1
ALTER COLUMN ColumnName VARCHAR(255) COLLATE Latin1_General_CI_AS;
This action may affect existing data and other related operations, so be careful while proceeding.
Also, please check these links for more information:
COLLATE (Transact-SQL) - SQL Server | Microsoft LearnIf you find this response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.
Thank you.
Please refer this thread :
https://stackoverflow.com/questions/20544392/how-to-fix-a-collation-conflict-in-a-sql-server-query
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |