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 :
Microsoft Dynamics AX (Archived)

AX 2012 R2 - Rename the model database

(0) ShareShare
ReportReport
Posted on by 210

Hello

Is it possible to rename the model database?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Søren Rasmussen - Bredana Profile Picture
    817 on at

    The model database is not specified in the system so it is expected to be name <originaldbname>_model.

    So the answer is yes you can rename it but the AOS will not start afterwards.

    .søren

  • Nehalem Profile Picture
    210 on at

    Haha, but I need the AOS running ;-)

    OK, if it's not possible to rename the model database I'll let it be...

    Thank's for your help

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    There is ModelDatabase key in Windows registry (under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dynamics Server\6.0\02\{Config name}), but I've never tried to change it. You may experiment, if you really want.

  • Nehalem Profile Picture
    210 on at

    There's only a key called "ModelDatabase_Baseline".

    I created "ModelDatabase" manually, renamed the module database and restarted the AOS but that doesn't work.

    Seems like there's no possibility to change the module database name....

    But thanks for your help and input.

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    It does exist in my installation, as well as in the virtual machine from Microsoft, but I have no idea how and whether it is used. And I'm not going to investigate it.

  • Tommy Skaue Profile Picture
    Moderator on at

    I would strongly recommend to stick with the naming convention and pattern used by the installer, DATABASENAME_model. There might be a lot of places in various tools that depends in this naming convention (ie AxUtilLib), so breaking this pattern would be a bad idea.

  • Søren Rasmussen - Bredana Profile Picture
    817 on at

    The AXUtil's /db parameter takes the name of the model database so I am pretty sure that it will work with a changed name.

    The question is why you would like to change it. Moving it to another server?

    .søren

  • Nehalem Profile Picture
    210 on at

    There's no reason to change the name. ;-)

    I was just wondering.

    I saw it's possible to set the name of the AX and baseline database and I just asked myself if it's also possible to change the name of the model database. If there's no chance to rename the model database it's not a problem for me. It only makes no sense that I can rename the AX and baseline database but not the model database...

  • Tommy Skaue Profile Picture
    Moderator on at

    Well, in an upgrade from AX2012 RTM to AX2012 R2, you have the option of pointing the baseline to the original database. So having the option to point the baseline to nothing or something can be usable.

    As for the model database, it is tightly coupled with the business database. You should almost think of them as one, they are heavily dependent on each other. In fact, if you install two seperate AX2012 installations, you won't be able to take one model database and use it against the other business database. The element IDs and handles will most likely mismatch.

    So I would argue "stick with the naming convention". ;-)

  • Søren Rasmussen - Bredana Profile Picture
    817 on at

    You can move a model database between different environments (e.g. Dev -> Test). Either through export/import of the modelstore or a backup/restore of the model database.

    But when doing it between different installations besides that you should be careful though.

    Having the databases separated gives you a lot of options in this area when model moving is not enough.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans