How do I override the identity column in MSSQL? I tried :
SET IDENTITY_INSERT GeoCountry ON
UPDATE GeoCountry SET CountryID = 18 WHERE C
If you want to reenumerate the values of an identity field, because for instance the values have gone mad, just do as follows:
open table in design mode click on Identity Specification
mark (is identity) as NO (Your identity field is still a PK)
close and save design
open table in edit mode Change the values of your Identity field as desired (just be aware you cannot have duplicate values)
Close the table and open it again in design mode Replace your identity field (is identity) to Yes.
Close the table and you are done.