Creating a Sequence in SQL Server
Use the SQL Server Sequence Editor to define sequences in a SQL Server 2012, 2014, or 2016 physical model.
Follow these steps:
A Sequence is created.
The SQL Server Sequence Editor opens.
Defines the first value that is returned by the sequence object.
Limit: Greater than or equal to the minimum sequence object and smaller than or equal to the maximum sequence object.
Default: Minimum value for an ascending sequence object and the maximum value for a descending sequence object.
Defines the increment value of the sequence object when the Next Value For function is run. The Increment By value cannot be 0 but it can be a negative value.
Specifies the minimum value for the sequence object
Specifies the maximum value for the sequence object.
Specifies that the sequence object restarts the sequence cycle when it exceeds minimum or maximum value.
Specifies that the sequence object creates a cache of sequence values to increase the performance of the application.
The SQL Server Sequence Editor is defined and the SQL Server Sequence Editor closes.
Note: To delete a sequence, right-click the sequence and click Delete.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|