converting SQL . BAK to SQL backpac format
Asked Answered
J

2

22

I have MSSQL .BAK file, and for logistical reason (the DB being huge for my infra) I want to convert the same to BacPac file, so that I could upload the same to Azure.

All this while I thought .BAK and BacPac are same, so there was error, is there a utility to get it converted?

Jellify answered 21/8, 2012 at 14:56 Comment(0)
N
15

They are different formats. "bacpac" files do not include Transaction logs and are not transitionally consistent by themselves. You can read more about it here "Windows Azure SQL Database Backup and Restore Strategy"

Your best path would be to restore the backup (".bak") of the database to a local server, and then to create a ".bacpac" file from the restored DB. You don't need the restored local copy of the DB to be high performance (other than for the purposes of extracting its data into the bacpac) so you can restore it onto a server that just has enough space to accommodate the data. That should help with the "the DB being huge for my infra" problem.

Nail answered 22/8, 2012 at 20:2 Comment(2)
Is there any chance this answer is old and new tooling exists? I have a need to import a .bak from a third party and restore to azure Sql on a periodic interval. Really don want it to become a manual process that involves anything local.Spout
@Spout I found this that could get you started on building tooling devblogs.microsoft.com/azure-sql/…Rheinlander
S
0

I used the Microsoft SQL Server management studio and it work well: converting .sql to .bacpac/ bak

Saraband answered 26/4 at 12:19 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Placate

© 2022 - 2024 — McMap. All rights reserved.