Create Database Sequence (Data Management Tools)
Summary
Creates a database sequence in a geodatabase. You can use the sequences in custom applications that access the geodatabase.
Usage
This tool can be used with file and mobile geodatabases, and enterprise geodatabases in IBM Db2, Microsoft SQL Server, Oracle, PostgreSQL, and SAP HANA.
You can use the
ListDatabaseSequencesfunction to get a list of database sequences in a file geodatabase. As sequence names must be unique, getting a list of existing sequences before creating a new one allows you to avoid specifying a name that is already in use.In an enterprise geodatabase, database sequence storage is handled by the database platform. Review the individual RDBMS platform documentation for more information. Integrated environments can be used to view the sequences.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Workspace |
The file, mobile, or enterprise geodatabase in which the sequence will be created. For an enterprise geodatabase, the workspace is the database connection file ( For database connections, the user specified in the database connection will be the owner of the sequence and must have the following permissions in the database:
|
Workspace |
|
Sequence Name |
The name that will be assigned to the database sequence. For enterprise geodatabases, the name must meet sequence name requirements for the database platform you're using and must be unique in the database. For file geodatabases, the name must be unique to the file geodatabase. It is important that you remember this name, as it is the name you use in your custom applications and expressions to invoke the sequence. |
String |
|
Sequence Start ID (Optional) |
The starting number of the sequence. If you do not provide a starting number, the sequence starts with 1. If you do provide a starting number, it must be greater than 0. |
Long |
|
Sequence Increment Value (Optional) |
Describes how the sequence numbers will increment. For example, if the sequence starts at 10 and the increment value is 5, the next value in the sequence is 15, and the next value after that is 20. If you do not specify an increment value, sequence values will increment by 1. |
Long |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Created sequence in geodatabase |
The updated input workspace. |
Workspace |
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes