Check out example codes for "identity insert on sql server". It will help you in understanding the concepts better.

Code Example 1

SET IDENTITY_INSERT sometableWithIdentity ON

INSERT sometableWithIdentity (IdentityColumn, col2, col3, ...)
VALUES (AnIdentityValue, col2value, col3value, ...)

SET IDENTITY_INSERT sometableWithIdentity OFF

Learn ReactJs, React Native from akashmittal.com