Forum Discussion

pmscorca's avatar
pmscorca
Kudo Kingpin
1 year ago
Solved

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

  • 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.

5 Replies

  • Hi pmscorca,

    Please check the below Microsoft documentation link:

    Table constraints

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

    • pmscorca's avatar
      pmscorca
      Kudo Kingpin

      Hi, but I'm referring to a Fabric SQL Database and not warehouse/lakehouse.

      Thanks

      • idrismotiwala's avatar
        idrismotiwala
        Microsoft Employee

        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!