Quantcast
Channel: SQL Server Migration forum
Viewing all articles
Browse latest Browse all 1700

Data Migration with Identity column

$
0
0

Hi, 

I need to migrate employees data from one database to another database. In both databases UserFormId is primary key and identity column and also that is used as a FK in other tables. How can I migrate data  and maintain PK, FK relationship.

Once I will insert the data into destination database then new userformid will be generated, I can't set identity off because there is a possibility of same Userform id in both database.

One way is to write cursor, is there any other efficient a fast way ?

Thanks

Tahir


Viewing all articles
Browse latest Browse all 1700

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>