it's a bit pain point for me right now ~really don't know the reason that it doesn't include in DW . as well as the foreign key ………………………...
Azure synapse tablock

sakuraime
2,286
Reputation points
Dear All expert.
In Azure sql datawarehouse. are there any way to do tablock ?
I have a table with a column having an id int column .
I want to insert a record in this table with increment of 1 . how can I do that ?
{count} votes
Are you sure it's incremental ? or random ?
No, my mistake @Michael
You are right. IDENTITY does not fit in Azure Data Warehouse, since it does not guarantee the order
And unfortunately, SEQUENCE does not supported at all
It's good question @Michael
I don't think there is a built-in DDL solution for your need. Moreover, any solution which is based on the application side might not fully guarantee the behavior. If you guarantee that the all DML queries are executed only in your application and you can control the app, then maybe a solution in the application side might solve your need. For example allow only single user to connect to your warehouse for the task.
Sign in to comment