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
You can't use ALTER TABLE ... ALTER COLUMN
to modify a column to have an identity property. You'll need to
identity
property. It should have the same type (int
, I presume) as the existing column.Simple! Or something.