This topic describes how to create, edit, delete, duplicate, and manage sequences from Database Explorer.
1. In Database Explorer, right-click a sequence or the Sequences node and select New Sequence.
2. Update the CREATE SEQUENCE statement template. For more information, see Sequence Designer.
3. In the bottom panel, click Apply Changes.
1. In Database Explorer, right-click the sequence and select Open Editor.
2. Edit the sequence.
3. In the bottom panel, click Apply Changes.
1. In Database Explorer, right-click the sequence you want to delete and select Delete, or press Delete.
2. Click Yes to confirm the deletion.
Note
You cannot undo the drop sequence operation, as this action permanently deletes its structure. Back up the database before deleting the sequence.
1. In Database Explorer, right-click the required sequence and select Duplicate Object.
2. In the Duplicate Object dialog, configure the object settings:
3. Click OK.
1. In Database Explorer, right-click the required sequence and select Generate Script As, then select the statement type.
2. Select the output option:
For more information, see Generate the DDL and DML statements for database objects.
To view sequence properties, in Database Explorer, right-click the sequence or the Sequences node and select Show Details.
Object Viewer opens and provides detailed information about the sequence.
To update the sequence to reflect the latest changes, in Database Explorer, right-click the sequence or the Sequences node and select Refresh, or press F5.
To open the Properties window, in Database Explorer, right-click the sequence and select Properties, or press F4.
1. In Database Explorer, right-click the Sequences node and select Filter.
2. In the Filter Settings dialog, configure the filter parameters.
3. Click OK to apply the filter.
Note
When you open the Sequences node, the number of objects it contains appears in parentheses next to the node name. This number changes based on your filter settings.