I have a table which should not have Identity property set on primary key column on multiple databases. May be some one has unintentionally set its property from design view.
Hence, I want to write a one time query which will detect and remove that identity specification from table.
I have read all the search articles and not satisfied with the solutions like creating new table, copying its metadata/data and renaming it since that table is very critical and column has many constraints over it.
I also tried, setting Identity_insert
property ON
but it is for one time only. When server is connected again, it does not allow me to save.
SET IDENTITY_INSERT <tableName> ON;
I don't want to change my backend procedures too by setting IDENTITY_INSERT ON
before inserting data into it.
Any Suggestions?