Data migrating from SQL Server old database to new database

Viewed 30

I would like to know, if there is a SQL database for the existing system.

Here I'm going to build a new one by changing the database structure of the old one. I need help building a script to migrate data.

Here is the Old Database Country Table Structure

Old database Country Table

enter image description here

Old database Province Table

enter image description here

New database Country Table

enter image description here

New database Province Table

enter image description here

I have already migrated Country data from the old one to the new one.

The issue is now I want to migrate the province details from the old table to the new table. Here IDs for the country consist of two different Id Ranges. And need to check the ID with the province and with the new table check the Country Id with the country name and get the new Id and save it to the province new table with the province data.

As far as I got this Idea and no idea of how to write this script. Any different ideas for doing this with scripts?

0 Answers
Related