Jul '24 (edited) • Technical
How to Implement Sequential Primary Keys in Microsoft Fabric Without Sequence or Identity?
I'm working on a project where I need a primary key as a sequentially increasing number, but in Microsoft Fabric, the Sequence and Identity features are not supported. I've tried using NEWID() and converting it to INT, but it's a hash value and won't be sequential.
I found an article where they use MAX and ROW_NUMBER()
LINK:
But when I try to parameterize it inside the stored procedure, it's not working.
Is there any other alternative approach?
Note: I don't have much experience in SQL Server and stored procedures.So, pleased to share your thoughts with basic stuff.
0
6 comments
Avinash Sekar
2
How to Implement Sequential Primary Keys in Microsoft Fabric Without Sequence or Identity?
Learn Microsoft Fabric
skool.com/microsoft-fabric
Helping passionate analysts, data engineers, data scientists (& more) to advance their careers on the Microsoft Fabric platform.
Leaderboard (30-day)
Powered by