I came to know how to copy data from one database to another database within one server, from this Transfer data from one database to another database and between different servers from this Copy table to a different database on a different SQL Server, but I want to copy data of table from one database to another database which has different table structures.
I will explain my requirements with an example.
Consider a table contains basic information of patients such as FirstName, LastName, Gender, Contact, Address, OpShortNotice, HasDiabetes, HasBloodPressure and so on.
In source database it has table named Patient and contain all the above fields, where as in my destination database has FirstName, LastName, Gender, Contact, Address fields in the table named Person and OpShortNotice, HasDiabetes, HasBloodPressure fields in the table named Patient. Then how to copy data from source to destination database?
Like above simple example scenario, I have many tables and massive data to be migrated. As of now, my source and destination are in same server to make a trail of Data migration but definitely my future requirement will be with different servers.
Please, Anyone help me to do this with scripts or any particular tool meeting my requirements.
Thank you, in advance.