Setting Identity field, seed and increment in a table in Management Studio v18 (2019)

Dan Chan 86 Reputation points
2020-12-16T17:01:44.967+00:00

I am wondering if there is a way to set Identity Field, Seed, Increment in Management Studio 2019 (V18.6) just like in Management Studio 2012. I wonder if Transact-SQL is the only way to set Identity seed and increment in Management Studio 2019.

Thanks!

dchan

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,710 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,552 questions
0 comments No comments
{count} votes

4 additional answers

Sort by: Most helpful
  1. Cris Zhan-MSFT 6,601 Reputation points
    2020-12-17T04:03:34.127+00:00

    Hi @Dan Chan ,

    >I wonder if Transact-SQL is the only way to set Identity seed and increment in Management Studio 2019

    In addition to using T-SQL statements, you can also set/edit the Identity field when create a table or design the table by SSMS UI.

    But it should be noted that when using SSMS UI to Design the table, the SSMS UI is not allowed to make major changes to the table by default, usually get error-"Saving changes is not permitted....". You should change a option as mentioned in the link above.

    0 comments No comments

  2. Dan Chan 86 Reputation points
    2020-12-17T13:24:26.81+00:00

    @Guoxiong .... I saw your screenshot in SSMS 2012, but not in SSMS 2019. Please see the attachment in my original post. I don't know how to make the attachment show up without clicking on it.

    @Cris Zhan-MSFT ..... Understood. But, is there a way to set identity seed and increment in SSMS 2019 UI?

    dchan


  3. Dan Chan 86 Reputation points
    2020-12-17T15:56:40.35+00:00

    @Guoxiong

    49233-managementstudio2019.png

    And the Identity Seed and Increment option cannot be found in the Properties window.

    dchan


  4. Dan Chan 86 Reputation points
    2020-12-17T22:16:48.57+00:00

    @Viorel @Guoxiong

    Thanks for you all's patience! I got it at last.
    It is at the same place where it has always been. I simply did not see it somehow!!!

    THANK YOU!

    dchan

    0 comments No comments