Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
pmscorca
Kudo Kingpin
Kudo Kingpin

Support for primary keys and foreign keys

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

1 ACCEPTED 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.

View solution in original post

5 REPLIES 5
Adityakumar
Advocate I
Advocate I

It Supports primary key, created a database for your reference and table with Primary key. Please find below screenshot for the same. 

Adityakumar_0-1749585587636.png

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! 

Srisakthi
Super User
Super User

Hi @pmscorca ,

 

It supports primary key, please do check the limitations.

https://learn.microsoft.com/en-us/fabric/database/sql/limitations

 

Regards,

Srisakthi

maruthisp
Super User
Super User

Hi pmscorca,

Please check the below Microsoft documentation link:

Table constraints

SQL analytics endpoint and Warehouse in Microsoft Fabric support these table constraints:

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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

Check out the June 2026 Fabric update to learn about new features.

Top Solution Authors
Top Kudoed Authors