SELECT * INTO _Temp FROM YourTable WHERE 1=2 -- get an empty table with the same structure ALTER TABLE _Temp DROP COLUMN nId -- remove existing Id ALTER TABLE _Temp ADD nId int identity(1,1) -- add an identity column SET IDENTITY_INSERT _Temp ON -- allow inserting explicit values into identity column -- migrate existing data into temp table INSERT INTO _Temp (nId, other fields...) SELECT nId, other fields... FROM YourTable DROP TABLE YourTable -- drop original table EXEC sp_rename '_Temp', 'YourTable' -- rename temp to originalHTH