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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
arkiboys2
Contributor

fabric datawarehouse

hello,

It looks like it is not possible to create keys or index on a table in the warehouse.

is this right?

the messsage says: primary key or unique keyword is not supported in the create table statement in this edition of sql server.

and not sure if my fabric warehouse should be upgraded? 

current version: 12.0.2000.8 oct 22 2024

thanks

1 ACCEPTED SOLUTION

You could use row_number or hashing your rows to get unique values for every row.

View solution in original post

4 REPLIES 4
FabianSchut
Contributor III

Hi, it is true that it is not possible to create keys or index on a table in the warehouse. Here is the documentation that mentions that limitation: https://learn.microsoft.com/en-us/fabric/data-warehouse/tables#limitations

is there a workaround?

You could use row_number or hashing your rows to get unique values for every row.

Anonymous
Not applicable

Hi, @arkiboys2 

Thanks for FabianSchutโ€˜s reply. As he said, currently Warehouse doesn't support the creation of unique indexes and there are some limitations for primary keys, you can try his method for your data and if it doesn't work, it's recommended to 
submit an idea for here and the product team will take note of such a need.

Related Link: New tab (powerbi.com)

Tables in data warehousing - Microsoft Fabric | Microsoft Learn

vyaningymsft_0-1730443924154.png

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Users online (27)