How to preserve identity field value in target system same as source when we restored/import data from 2019 to 2021
Hi Team,
When I restored the database or import the data from source system to target system at that time how to Preserve source system identity value in target system.
Thanks,
Ankur Shah
Ankur,
If you use the Backup and Restore functionality (^DBACK and ^DBREST) all identity values will be preserved.
If you are importing the data in another way you need to look at the $SYSTEM.SQL SetIdentityInsert ClassMethod, this allows you to insert id values when importing data through SQL statements for example.
Oliver.
Oliver already pointed you at the key setting for this, but I thought I'd include a snippet from and link to the corresponding doc as well