Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move data between two Azure SQL databases without using elastic query

I am in need of suggestion to move data from a particular table in one azure sql database to the other azure sql database which has the same table structure without using elastic query

like image 230
Anudeep Avatar asked Jan 23 '26 00:01

Anudeep


1 Answers

Using SQL Server Management Studio to connect to SQL azure database, right click the source database and select generate scripts.

During the wizard, after have select the tables that you want to output to a query window, then click advanced. About half way down the properties window there is an option for "type of data to script". Select that and change it to "data only", then finish the wizard.

The heck the script, rearrange the inserts for constraints, and change the using at the top to run it against my target DB.

Then right click on the target database and select new query, copy the script into it, and run it.

This will migrate the data.

like image 102
Mohit_Garg Avatar answered Jan 27 '26 01:01

Mohit_Garg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!