This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
I'd like to know if Fabric SQL database supports the primary keys and the foreign keys for tables.
I hope that this is possible, otherwise for which reasons.
Thanks
Solved! Go to Solution.
Hi @pmscorca , Fabric SQL database supports primary keys/foreign keys and all other objects that you may be familiar in Azure SQL Database or SQL Server.
It Supports primary key, created a database for your reference and table with Primary key. Please find below screenshot for the same.
If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated, thanks!
Hi @pmscorca ,
It supports primary key, please do check the limitations.
https://learn.microsoft.com/en-us/fabric/database/sql/limitations
Regards,
Srisakthi
Hi pmscorca,
Please check the below Microsoft documentation link:
SQL analytics endpoint and Warehouse in Microsoft Fabric support these table constraints:
If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated, thanks!
Best Regards,
Maruthi
Hi, but I'm referring to a Fabric SQL Database and not warehouse/lakehouse.
Thanks
Hi @pmscorca , Fabric SQL database supports primary keys/foreign keys and all other objects that you may be familiar in Azure SQL Database or SQL Server.
Check out the April 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.