5
I need to change an existing column in a table so that it stays with the property identity
using T-SQL and then entering data into this table. The column already contains data and after this insertion, I must again change this column by disabling the property identity
. Currently I need to enter the data manually, seeing which is the last integer (index) to complete the insertion. How to do this correctly?
I didn’t understand you put the id one by one or that it is automatically generated?
– Marco Souza
I want to be automatically generated one by one from the last added, and also at the end of the code do not automatically generate.
– Rodrigo Carioca
If that’s what I’m getting at this here
SET IDENTITY_INSERT [ database_name . [ schema_name ] . ] table { ON | OFF }
– Marco Souza