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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to restore the backup in AX or SQL from the previous backup?

(0) ShareShare
ReportReport
Posted on by 1,260

Can someone please share the steps or a really good documents on how we can restore the previous backup into Dynamics AX 2012 R3 or from SQL database?

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    It's a potentially huge topic and how exactly you should restore your databases depends predominantly on how you do backups. Very detailed documentation can be found in Back Up and Restore of SQL Server Databases.

    For a few AX-specific points, consult Plan backup and recovery [AX 2012].

  • Daljit Kaur Rahsi Profile Picture
    1,260 on at

    Is there any simple script to enter in the cmd and just run the backup, like the way we do for compiling the AX?

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Hi D_Meethu R,

    You can use any script for SQL backup and restore for example blog.sqlauthority.com/.../sql-server-restore-database-backup-using-sql-script-t-sql

    But keep in mind that there are 2 data bases: Business data DB and model store. One contains all business data and another all code and metadata.

    Also if you are talking about restore DB from one environment to another e.g. from prod to test it's a huge topic as Martin mentioned.

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    There is no single way to restore a backup, because there are several different types of backups (e.g. differential backups), different ways of restoring (e.g. point-in-time recovery), parameters you want to use (such as replacing a database with a different name) and so on.

    Please don't try to restore a backup unless you understand what kind of backup it is and how you want to restore it.

  • Daljit Kaur Rahsi Profile Picture
    1,260 on at

    Martin,

    If it is a simple backup, like you are asked to do the backup of the previous night or they say to restore the backup on Friday's file; then?

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    I don't know your definition of "simple backup", therefore please tell us:

    1. What kind of AX environment is it? (Dev, Production or so.)
    2. Which databases are involved? (AX data, modelstore, SharePoint, analysis services...)
    3. What's the recovery model of all databases that you're going to restore (connect to the database server in SSMS and check Properties > Options > Recovery model of each applicable database).
    4. How exactly did you make the backup?
    5. Are you using any kind of high-availability configuration?
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    I don't thing this is going to help, because your blog post is actually about a different topic. It basically shows how not to restore some tables, suggesting that you're doing a data migration from another environment and not a restore of an environment.

    By the way, you can now simply use the Test Data Transfer Tool to skip certain tables. But again, that's not a restore.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans