In the documentation of CREATE SEQUENCE
for T-SQL, you can see that the CREATE SEQUENCE
command has no ORDER
parameter.
For comparison, the Oracle docs for CREATE SEQUENCE
show the ORDER
/NOORDER
options:
ORDER
Specify
ORDER
to guarantee that sequence numbers are generated in order of request. This clause is useful if you are using the sequence numbers as timestamps. Guaranteeing order is usually not important for sequences used to generate primary keys.
ORDER
is necessary only to guarantee ordered generation if you are using Oracle Database with Real Application Clusters. If you are using exclusive mode, sequence numbers are always generated in order.
NOORDER
Specify
NOORDER
if you do not want to guarantee sequence numbers are generated in order of request. This is the default.
Does Microsoft SQL Server provide a strong ordering constraint for SEQUENCE
s? Or does Microsoft not consider it important in general?
CREATE SEQUENCE
statements, I ran into the ORDER parameter, and I just wanted to be sure that it wouldn't be a problem (I am unsure of exactly why theORDER
was added in the first place so I thought I might ask just in case).