Sequence Designer

Sequence Designer in dbForge Studio for SQL Server allows you to configure sequence properties such as the start value, increment, minimum and maximum values, cycling behavior, and cache settings. The Designer simplifies sequence management and helps ensure accurate configuration of database objects for generating unique numeric values.

Open Sequence Designer

To open the Designer, in Database Explorer, expand Programmability, right-click the Sequences node or a sequence, and select New Sequence.

New Sequence option

You can also open the Designer in one of these ways:

  • On the menu bar, select Database > New Database Object. Then select Sequence, enter the sequence name, and click Create.
  • On the Start Page, select Database Design > New Database Object. Then select Sequence, enter the sequence name, and click Create.

Alternative way to create a sequence

The Designer opens, displaying:

  • SQL Editor – Shows the CREATE SEQUENCE template.
  • Bottom panel – Lets you refresh the object, apply changes, or generate a script for review before execution.

Sequence designer

SQL Editor

When SQL Editor opens, you can see the generated template, which you need to customize.

CREATE SEQUENCE dbo.sequence1
AS BIGINT
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
NO CYCLE
NO CACHE
GO

The Editor supports code completion, which provides:

  • Auto-completion for SQL keywords.
  • Suggestions for database objects, such as tables, columns, and schemas.
  • Syntax assistance to help ensure code accuracy.

Code completion suggestions are also available for editing existing sequences.

Bottom panel

You can use the bottom panel to:

  • Refresh Object (Shift+Alt+R) – Reloads the object state from the database.
  • Apply Changes (Shift+Alt+A) – Runs a SQL script and saves the changes to the database.
  • Script Changes – Generates the script in a new SQL document that includes all your changes without applying them to the database.

    Click the arrow next to Script Changes and select:

    • To New SQL Window (Shift+Alt+C) – Opens the script in a new SQL document.
    • To Clipboard – Copies the script to the clipboard.

    Script Changes options