How do I add auto_increment to a column in SQL Server 2008

前端 未结 5 821
走了就别回头了
走了就别回头了 2021-01-12 21:10

I am using SQL Server 2008 and a primary key of a database table I am using is not an IDENTITY column (not sure why). I need to change that.

I am in SQ

5条回答
  •  独厮守ぢ
    2021-01-12 21:46

    To illustrate Martin's point:

    enter image description here

    And PS: - as Mikael Eriksson rightfully mentions (and documents nicely), this Identity Specification remains grayed out as long as that column you're working on has a default constraint.

提交回复
热议问题