Migrating Azure SQL
Exporting Azure SQL is fairly simple and I prefer to do it using SQL Management studio. Also I don't need the Transaction Logs and History so using .bacpac is much more convenient for me. If you need Transaction Logs and History you need to find some other method for migration.
- Connect to your Azure SQL server
- Right click on the database you want to export
- Go to Tasks -> Export Data-tier Application
- Wizard will guide through the rest of the process, and create a .bacpac file that is the full database backup with structure and all the data
- On your second server just reverse the process by using Task -> Import Data-tier Application
When it doesn't work
As I stated before sometimes The Cloud just doesn't work, and it always happens in the worst possible moment. My scenario began when EF Migrations failed to update the database schema but somehow put the new record in Migrations table. I needed to restore rollback or restore the old copy of the database.
For the failed attempts I tried:
- Azure point in time restore, it failed with a generic message that the action cannot be completed?!
- Export function of the current database (I needed it to sync the data later) failed in the same matter
- Exporting using the previously described method got stuck on trying to export database schema
Since it was a middle of the work day with high traffic I was pretty desperate so the only thing that did work was to copy the database using the old Azure portal.
pendik samsung klima servisi
ReplyDeleteataşehir alarko carrier klima servisi
kadıköy toshiba klima servisi
maltepe beko klima servisi
kadıköy beko klima servisi
ümraniye lg klima servisi
kartal daikin klima servisi
ümraniye daikin klima servisi
beykoz toshiba klima servisi