I want to move my azure sql db to another host. However my new host allows to import sql db backup-files (.BAK) only; I found out how to generate .BACPAK files with SQL Server Management Studio but I could not find a way to create a BAK-file from my azure sql db. Please help.
How to create BAK file from azure sql db
Asked Answered
exact duplicate of make a backup for azure database, including the answer... –
Resuscitate
However my new host allows to import sql db backup-files (.BAK) only;
SQL Azure doesn't provide a native way to generate '.bak' format backup file. If you did need this format file, you could import the BACPAC File to a local SQL Server which supports importing BACPAC File. After that, a new User Database will be created. Then you could generate a '.bak' format file from the local SQL Server.
In addition, you also could try a tool named SqlAzureBakMaker which could make '.bak' file for you easily.
This kills the purpose for me, I wanted the .bak file for index fragmentation to make tests on local. But it recreates indexes. –
Oaf
In Azure portal:
- In the SQL Server database page, click on 'Export'
- Select a Storage Account and a Container, and click 'Ok'
- Go to your Storage accounts page
- Select the previously selected Storage account
- At the sub-navigation-menu > Data-storage section > Containers > select the used Container
- You should find the exported .bac file shortly after, you can download it.
Hope it helps.
© 2022 - 2024 — McMap. All rights reserved.