<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Best practice for joining tables of different warehouses with different collation in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4388013#M2422</link>
    <description>&lt;P data-pm-slice="0 0 []"&gt;Please refer this thread :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/20544392/how-to-fix-a-collation-conflict-in-a-sql-server-query" target=""&gt;https://stackoverflow.com/questions/20544392/how-to-fix-a-collation-conflict-in-a-sql-server-query&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 11:01:10 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2025-01-30T11:01:10Z</dc:date>
    <item>
      <title>Best practice for joining tables of different warehouses with different collation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4388012#M2421</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to join tables of different warehouses present on same server but with different collation property and getting the follwoing error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the best practices to perform join between tables present in different warehouses but same server with different collation property?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 10:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4388012#M2421</guid>
      <dc:creator>PriyaJha</dc:creator>
      <dc:date>2025-01-30T10:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for joining tables of different warehouses with different collation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4388013#M2422</link>
      <description>&lt;P data-pm-slice="0 0 []"&gt;Please refer this thread :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/20544392/how-to-fix-a-collation-conflict-in-a-sql-server-query" target=""&gt;https://stackoverflow.com/questions/20544392/how-to-fix-a-collation-conflict-in-a-sql-server-query&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 11:01:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4388013#M2422</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2025-01-30T11:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for joining tables of different warehouses with different collation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4389725#M2427</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="283494" data-lia-user-login="PriyaJha" class="lia-mention lia-mention-user"&gt;PriyaJha&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out through the Microsoft Fabric Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Below are some best practices to resolve this issue:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Choose one of the existing collations or create a new one that suits both tables.&lt;/P&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Latin1_General_CI_AS – Case-insensitive and accent-sensitive. &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Latin1_General_BIN – Binary collation that treats strings based on byte values.&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Modify the SQL query to use the COLLATE clause and explicitly specify the same collation for both columns in the JOIN condition:&lt;/P&gt;
&lt;P&gt;SELECT * FROM Table1 t1&amp;nbsp; JOIN Table2 t2&amp;nbsp; ON t1.ColumnName COLLATE&amp;nbsp; Latin1_General_CI_AS&amp;nbsp; = t2.ColumnName COLLATE&amp;nbsp; Latin1_General_CI_AS;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;If you need to permanently change the collation for a specific column, run the following query:&lt;BR /&gt;
&lt;P data-pm-slice="1 1 []"&gt;ALTER TABLE Table1&lt;/P&gt;
&lt;P&gt;ALTER COLUMN ColumnName VARCHAR(255) COLLATE Latin1_General_CI_AS;&lt;BR /&gt;This action may affect existing data and other related operations, so be careful while proceeding.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Run the adjusted query to verify that the collation conflict has been resolved and that the JOIN operation executes successfully. Since collation changes can affect performance, it is advisable to test queries to ensure performance remains optimal after making these modifications.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Also, please check these links for more information:&lt;/SPAN&gt;&lt;/P&gt;
&lt;A href="https://learn.microsoft.com/en-us/sql/t-sql/statements/collations?view=sql-server-ver15" target="_blank"&gt;COLLATE (Transact-SQL) - SQL Server | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/relational-databases/collations/collation-and-unicode-support?view=sql-server-ver16" target="_blank"&gt;Collation and Unicode Support - SQL Server | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;If you find this response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 31 Jan 2025 10:46:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4389725#M2427</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-01-31T10:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for joining tables of different warehouses with different collation</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4393076#M2449</link>
      <description>&lt;P&gt;Hi PriyaJha,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 20:11:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Best-practice-for-joining-tables-of-different-warehouses-with/m-p/4393076#M2449</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-02-03T20:11:27Z</dc:date>
    </item>
  </channel>
</rss>

