Tag Archives: IDENTITY_INSERT

SQL : Inserting metadata or values in master table

Usually when developing any SQL based system, we need some master tables which contains values and Ids which are consistent and same as enums in our code. But when you set an identity column in the table it would not let you insert the Id of your choice. So there is a flag which you can turn on and then insert the rows, and then turn the flag back off.

Continue reading