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 :
Finance | Project Operations, Human Resources, ...
Unanswered

I imported new AxDB_UAT, how can I change the existing AxDB to AxDB_Backup, then rename AxDB_UAT to Ax_DB?

(0) ShareShare
ReportReport
Posted on by 240

I need the detail steps (do I need to stop what service when doing that etc).

  • Mark JZ Yeap Profile Picture
    240 on at

    I found the answer.

    Its under "Start to use the new database".

    docs.microsoft.com/.../dbmovement-scenario-exportuat

  • WillWU Profile Picture
    22,363 on at

    Hi Mark,

    What environment are you currently in?

    Do you want to change the name of the database in UAT or the local development environment?

  • WillWU Profile Picture
    22,363 on at

    Are you now exporting the UAT environment to the tier 1 environment and changing the database name?  you can export the UAT database through the documentation and import it in the tier 1 environment and then change the database name in SSMS simply.

    docs.microsoft.com/.../rename-a-database

  • Mark JZ Yeap Profile Picture
    240 on at

    D365FO.

    Not for now. I just only ask a question.

  • Nara Sheshananda Profile Picture
    on at

    Hi Mark,

    execute below query , it will rename the existing AxDB to AxDB_old or you can name whatever you want

    ALTER DATABASE AxDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE

    GO

    ALTER DATABASE AxDB MODIFY NAME = AxDB_Old

    GO

    ALTER DATABASE AxDB_Old SET MULTI_USER;

    GO

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 320 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 210

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans