<?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: tables with a nonclustered primary key are not supported on Microsoft Fabric platform in SQL database</title>
    <link>https://community.fabric.microsoft.com/t5/SQL-database/tables-with-a-nonclustered-primary-key-are-not-supported-on/m-p/4813110#M425</link>
    <description>&lt;P&gt;Fabric doesn’t support nonclustered primary keys.&lt;/P&gt;&lt;P&gt;After you recreated replication, some tables in Azure SQL DB ended up with nonclustered PKs, so Fabric stopped syncing them — leaving data 1 day behind.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt; Fix: Make sure PKs in Azure SQL DB are clustered before mirroring.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Sep 2025 08:02:28 GMT</pubDate>
    <dc:creator>Shahid12523</dc:creator>
    <dc:date>2025-09-01T08:02:28Z</dc:date>
    <item>
      <title>tables with a nonclustered primary key are not supported on Microsoft Fabric platform</title>
      <link>https://community.fabric.microsoft.com/t5/SQL-database/tables-with-a-nonclustered-primary-key-are-not-supported-on/m-p/4744973#M380</link>
      <description>&lt;P&gt;I mirror data from an azure sql db to Fabric, but before azure sql db, we replicate data from an old db in a azure managed instance to azure sql db and then we mirror to Fabric. In the old db some tables have constraints, non clustered keys but in the azure sql db we do not copy those constraints only keep primary keys. But yesterday after recreate the replication, we had this error and I do not understand why, and also for those tables we have data in the Fabric but 1 day behind. Do you know why?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 11:42:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/SQL-database/tables-with-a-nonclustered-primary-key-are-not-supported-on/m-p/4744973#M380</guid>
      <dc:creator>lkara777</dc:creator>
      <dc:date>2025-06-26T11:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: tables with a nonclustered primary key are not supported on Microsoft Fabric platform</title>
      <link>https://community.fabric.microsoft.com/t5/SQL-database/tables-with-a-nonclustered-primary-key-are-not-supported-on/m-p/4767197#M411</link>
      <description>&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Hi&lt;/FONT&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="717467" data-lia-user-login="lkara777" class="lia-mention lia-mention-user"&gt;lkara777&lt;/a&gt;&lt;FONT color="#000000"&gt;- &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;Hope this helps to solve the issue.&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Root Cause:&lt;/STRONG&gt;&lt;/FONT&gt;Fabric requires clustered primary keys for mirroring. If your Azure SQL DB has tables with nonclustered primary keys, mirroring may fail or lag.&lt;BR /&gt;&lt;STRONG&gt;Why it happened:&lt;/STRONG&gt; After replication, some tables may have retained nonclustered keys from the old DB. Fabric doesn't support mirroring such tables.&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Issue Fix: &lt;/STRONG&gt;Check the index type of tables in &lt;U&gt;Source Azure SQL DB&lt;/U&gt;, &lt;STRONG&gt;Drop&lt;/STRONG&gt; the &lt;STRONG&gt;nonclustered primary key&lt;/STRONG&gt; constraint and&amp;nbsp;&lt;STRONG&gt;Create&lt;/STRONG&gt; a &lt;STRONG&gt;clustered primary key&lt;/STRONG&gt;, this will make the table compatible with Fabric mirroring.&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;You can use this query to list the constraints and indexes :&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;SELECT&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.name AS TableName,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.name AS IndexName,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.type_desc AS IndexType,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.is_primary_key,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.is_unique,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.is_unique_constraint,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c.name AS ConstraintName,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c.type_desc AS ConstraintType,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col.name AS ColumnName&lt;BR /&gt;FROM&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.tables t&lt;BR /&gt;LEFT JOIN&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.indexes i ON t.object_id = i.object_id&lt;BR /&gt;LEFT JOIN&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.index_columns ic ON i.object_id = ic.object_id AND i.index_id = ic.index_id&lt;BR /&gt;LEFT JOIN&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.columns col ON ic.object_id = col.object_id AND ic.column_id = col.column_id&lt;BR /&gt;LEFT JOIN&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.key_constraints c ON i.object_id = c.parent_object_id AND i.index_id = c.unique_index_id&lt;BR /&gt;ORDER BY&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.name, i.name, col.column_id;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Query to Drop and Create index:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="courier new,courier" size="2"&gt;ALTER TABLE YourTableName &lt;STRONG&gt;DROP CONSTRAINT&lt;/STRONG&gt; PK_YourTableName;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="courier new,courier" size="2"&gt;ALTER TABLE YourTableName&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;ADD CONSTRAINT&lt;/STRONG&gt; PK_YourTableName &lt;STRONG&gt;PRIMARY KEY CLUSTERED&lt;/STRONG&gt; (YourPrimaryKeyColumn);&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 15:16:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/SQL-database/tables-with-a-nonclustered-primary-key-are-not-supported-on/m-p/4767197#M411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-17T15:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: tables with a nonclustered primary key are not supported on Microsoft Fabric platform</title>
      <link>https://community.fabric.microsoft.com/t5/SQL-database/tables-with-a-nonclustered-primary-key-are-not-supported-on/m-p/4813110#M425</link>
      <description>&lt;P&gt;Fabric doesn’t support nonclustered primary keys.&lt;/P&gt;&lt;P&gt;After you recreated replication, some tables in Azure SQL DB ended up with nonclustered PKs, so Fabric stopped syncing them — leaving data 1 day behind.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt; Fix: Make sure PKs in Azure SQL DB are clustered before mirroring.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 08:02:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/SQL-database/tables-with-a-nonclustered-primary-key-are-not-supported-on/m-p/4813110#M425</guid>
      <dc:creator>Shahid12523</dc:creator>
      <dc:date>2025-09-01T08:02:28Z</dc:date>
    </item>
  </channel>
</rss>

