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

Dan Chan 96 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
Developer technologies | Transact-SQL
SQL Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. Guoxiong 8,206 Reputation points
    2020-12-16T21:15:43.65+00:00

    On SSMS, you can set the Identity Seed and Identity Increment. See the screenshot:

    48901-image.png

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Cris Zhan-MSFT 6,661 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 96 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 96 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 96 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.