<?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: Foreign Key Constraints Behavior After Mirroring SQL Server to Fabric in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5125790#M15310</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1526032"&gt;@ShanthanPaladi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We really appreciate your efforts and for letting us know the update on the issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please continue using fabric community forum for your further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2026 05:07:29 GMT</pubDate>
    <dc:creator>v-nmadadi-msft</dc:creator>
    <dc:date>2026-03-05T05:07:29Z</dc:date>
    <item>
      <title>Foreign Key Constraints Behavior After Mirroring SQL Server to Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5119509#M15222</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have mirrored an on-premises &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Microsoft SQL Server&lt;/SPAN&gt;&lt;/SPAN&gt; database into Microsoft Fabric using the mirroring feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the source database, multiple tables have foreign key constraints defined. After mirroring, I understand that these constraints are not carried over to Fabric by default.&lt;/P&gt;&lt;P&gt;So, I manually created the foreign key constraints in the mirrored database using SQL Endpoint. However, I am noticing that these constraints are not being retained — they seem to get dropped or deleted after some time (possibly during sync or refresh).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this expected behavior with Fabric mirroring?&lt;/LI&gt;&lt;LI&gt;Is there any way to prevent the foreign key constraints from being dropped automatically?&lt;/LI&gt;&lt;LI&gt;What is the recommended approach to maintain referential integrity in this scenario?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 12:57:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5119509#M15222</guid>
      <dc:creator>ShanthanPaladi</dc:creator>
      <dc:date>2026-02-25T12:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Constraints Behavior After Mirroring SQL Server to Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5119779#M15223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1526032"&gt;@ShanthanPaladi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Yes, this is expected behavior.&lt;/STRONG&gt; The Fabric mirroring process only replicates data — it does not carry over DDL schema objects like foreign key constraints from the source SQL Server. More importantly, the SQL Analytics Endpoint in Fabric is a &lt;STRONG&gt;read-only, auto-generated&lt;/STRONG&gt; view over the underlying Delta/Parquet files in OneLake. Any schema-level changes you make directly on the SQL Analytics Endpoint (including manually adding foreign keys) can be lost or overridden when the mirroring sync refreshes the metadata or when the endpoint regenerates its schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a fundamental architectural difference from on-premises SQL Server. Fabric is an analytics platform, not a transactional one, and its constraint system is intentionally non-enforcing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post helps, then please appreciate giving a &lt;STRONG&gt;Kudos&lt;/STRONG&gt; or accepting as a &lt;STRONG&gt;Solution&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 16:41:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5119779#M15223</guid>
      <dc:creator>ssrithar</dc:creator>
      <dc:date>2026-02-25T16:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Constraints Behavior After Mirroring SQL Server to Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5119780#M15224</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1526032"&gt;@ShanthanPaladi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is expected behaviour. The mirrored database, available as a SQL analytics endpoint, is read-only. You are only allowed to&amp;nbsp;analyze data in delta tables using a no code visual query editor or T-SQL to create views, functions, stored procedures, and apply SQL security - you can't apply DDL constructs!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;In summary, in Fabric Mirroring:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Foreign keys are not replicated&lt;/LI&gt;&lt;LI&gt;The SQL analytics endpoint is read‑only&lt;/LI&gt;&lt;LI&gt;Constraints you manually add are not retained&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Therefore:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ARI (Assume Referential INtegrity) is the correct analytical substitute for missing physical constraints&lt;/LI&gt;&lt;LI&gt;Integrity should be enforced in the source SQL Server&lt;/LI&gt;&lt;LI&gt;ARI tells Fabric: “Trust the source system”&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is the recommended pattern for mirrored databases on Fabric at this time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Feb 2026 16:41:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5119780#M15224</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-02-25T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Constraints Behavior After Mirroring SQL Server to Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5120329#M15234</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1448111"&gt;@ssrithar&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1445078"&gt;@deborshi_nag&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you both for your detailed inputs and clarification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your guidance and the detailed explanation — it helped me understand the expected behavior and the recommended approach moving forward.&lt;BR /&gt;&lt;BR /&gt;Thanks again for your support!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 05:25:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5120329#M15234</guid>
      <dc:creator>ShanthanPaladi</dc:creator>
      <dc:date>2026-02-26T05:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Constraints Behavior After Mirroring SQL Server to Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5125790#M15310</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1526032"&gt;@ShanthanPaladi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We really appreciate your efforts and for letting us know the update on the issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please continue using fabric community forum for your further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 05:07:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Foreign-Key-Constraints-Behavior-After-Mirroring-SQL-Server-to/m-p/5125790#M15310</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2026-03-05T05:07:29Z</dc:date>
    </item>
  </channel>
</rss>

