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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
pmscorca
Kudo Kingpin
Kudo Kingpin

Foreign keys not visible in database explorer

Hi,

when I create a relationship between two tables I've noticed that the related foreign key isn't visible in the database explorer, while for the primary keys at least it is reported the "pk" acronym: this is it a limitation or a regular behaviour?

Thanks

4 REPLIES 4
V-yubandi-msft
Community Support
Community Support

Hi @pmscorca ,

We haven’t received a response yet. Please let us know if you need any additional details or clarification from our side.

 

Thank you.

V-yubandi-msft
Community Support
Community Support

Hi @pmscorca ,

Thank you for engaging with the Microsoft Fabric Community. This behavior is generally related to how the tool displays metadata. The database explorer typically highlights primary keys, while foreign keys are not always shown in the same way.

 

If the relationship was created at the model level, it may not create a physical FK constraint in the database, which is why it doesn’t appear in the explorer.

 

If needed, you can define the FK explicitly as a database constraint. Otherwise, the relationship should still function correctly even if it isn’t visible in the UI.

Thank You.

Hi, I've created an explicit relationship using foreign keys and I'd like to see it in the explorer as it occurs for primary keys.

Thanks

Hi @pmscorca ,

Thank you for confirming that the foreign key has been created. Even with an explicitly defined FK, it might not appear in the explorer in the same way as primary keys. This is due to how the explorer displays metadata primary keys are often more visible, while foreign keys may not be.

 

There isn’t dedicated documentation on this, but the FK should still exist and function properly in the database.

 

You can also check the constraints section or use a diagram/model view to see the relationships more clearly.

 

Hope this helps.

Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

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

Top Solution Authors
Top Kudoed Authors