Since the self-Increment column property cannot be modified directly in Sql-server, it can be changed to implementation in the following way
1. If only the specified value is inserted, the following statement can be used to temporarily cancel
SET Identity_insert TableName on
INSERT into TableName (xx,xx) VALUES (XX,XX)
SET Identity_insert TableName OFF
2, add a column, delete the self-increment column, modify the name of the change column
ALTER TABLE a add XXX int
Update a set Xxx=id
ALTER TABLE a drop column ID
exec sp_rename ' xxx ', ' id ', ' column '
3. By modifying the system's Column properties on the table, improper use of the method may cause other unexpected errors
sp_configure ' Allow update ', 1
Reconfigure with override
Go
Update syscolumns set colstat=0 where Colstat=1 and id=object_id (' tablename ')
Go
sp_configure ' allow update ', 0
Reconfigure with override
SQL statement implementation cancels the self-increment column property