web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

how to create bacpac file from SQl and import into other Dev VM

(0) ShareShare
ReportReport
Posted on by 515

Hi All,

I want to move data from one Development (sandbox) instance to another. From Prod to sandbox it is done in easy way but if we want to move data base between sandbox instances then how we can export db as bacpac file from one VM and import it into another VM?

Thanks,

Shri

I have the same question (0)
  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at

    Have you already looked at docs.microsoft.com/.../export-database

  • Dhanshri Profile Picture
    515 on at

    Thanks for quick reply :)

    For my Develop & Test Box instance "Move Database" option is not available under Mainatin tab.

    Thanks,

    Shri

  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at

    If these are dev environments, you won't see this option on these. You can RDP into these boxes and export the database and then copy the file to other box and import the database there.

  • Suggested answer
    Rahul Mohta Profile Picture
    21,032 on at

    just export SQL DB from one dev box and import in other one

    can click on SQL DB, actions and import and export options

  • Dhanshri Profile Picture
    515 on at

    But it will create .BAk file right? In D365 we need bacpac file for DB refresh, please correct me if my understanding is wrong?

    If we restore db in similar old way just we used to do in Ax 2012 will it overwrite the code / objects?

    Thanks,

    Shri

  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at

    Code doesn’t exist in database anymore in D365. Code is in file system so it won’t  overwrite code. You can take backup and restore like any other database from SQL

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Tier 1 boxes use SQL Server. You can create a bak file via SQL backup and restore it on another Tier 1.  Tier 2 or higher use Azure SQL, to import data into Azure SQL you need a bacpac. It can be exported from Tier 1. Bacpac can be also imported to Tier 1 if required.

    Code is not stored in DB and to move source code you use version control or model files.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Bacpac is a format used by Azure SQL. Bak is a format used by SQL server. If you want to copy data between dev boxes, use .bak. It's a lot faster, too.

    The application code is not stored in the database.

  • Anup Shah MSFT Profile Picture
    on at

    Please click "Yes" if your question has been answered. Thanks

  • Dhanshri Profile Picture
    515 on at

    Hi Nikolaos,

    both are development & build type sandbox environment.So you think .Bak file will work?

    Thanks,

    Shri

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans