Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Business Central: company data migration between different databases

(2) ShareShare
ReportReport
Posted on by 29
Hi,
 
i have a customer with 2 different DB (BC21 version onprem); each DB contains a company (DB1 company A, DB2 Company B), and both companies are used.
These DB have the same apps (and version).
 
My customer asked me to migrate company B into DB1, for having only one DB with 2 companies.
 
 
I tried "ExportData" page (9901), but the file that i create is over 350MB, and i can't upload in DB1
I can't use Config.Packages because i have to move also entries.
 
I'm thinking to do it by SQL, but i'd like to know if there any other way.
 
Have you any suggestion? 
 
Thanks
Alberto
  • Suggested answer
    Dr Gomathi MVP, MCT Community lead, MLE Profile Picture
    254 on at
    Business Central: company data migration between different databases

    You have a few options for migrating Company B from DB2 to DB1 in Business Central (BC21 On-Prem):

    1. Use Data Upgrade Tools (Recommended)

    • Use the Export-NAVData and Import-NAVData PowerShell commands:
      1. Export Data from DB2:
        Export-NAVData -DatabaseServer "DB2_Server" -DatabaseName "DB2" -CompanyName "Company B" -FilePath "C:\Backup\CompanyB.navdata"
      2. Import Data into DB1:
        Import-NAVData -DatabaseServer "DB1_Server" -DatabaseName "DB1" -FilePath "C:\Backup\CompanyB.navdata" -IncludeApplicationData
      3. Restart Business Central service and verify the data.

    2. SQL Backup & Restore (Direct Approach)

    • Take a backup of DB2, restore it as a temporary database, and then copy Company B into DB1 using SQL scripts.
    • Make sure to copy all related tables, including entries.

    3. Use RapidStart Services (Limited)

    • If you only need master data, Configuration Packages can help, but they don’t migrate entries.

    Best Approach?

    • If you need a full migration (including entries), Export-NAVData is the best option.
    • If the file size is an issue, consider compressing the .navdata file or splitting it.
    • SQL migration is possible but requires careful handling of tables and relationships.

    Let me know if you need further details! 

  • André Arnaud de Calavon Profile Picture
    293,245 Super User 2025 Season 1 on at
    Business Central: company data migration between different databases
    Moved to the Business Central forum.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans