jueves, 1 de enero de 2015

AXUtil 2012 - s and db parameters

There are a few examples in blogs of the config switch for the AXUtil command.  However, I've not seen many that access the model store via the server and database switch.

Firstly, open up the Microsoft Dynamics AX 2012 Server Configuration and obtain the Server name with the Database name.

Server Configuration details
Let's change to the correct directory:
>CD \Program Files\Microsoft Dynamics AX\60\ManagementUtilities

Now, an example using the s and db switches:
AxUtil export /s:eszaractsql04\eszaractsql04 /db:zzzz_ax2012_db_prod_05_2014 /model:"VAR Model" /file:c:\temp\VARModel.axmodel

I assume that you will require access to the database, which is normally via the AOS service account.

Finally, an Error (0x80070005 E_ACCESSDENIED) can occur if we forget to add the path to the output file.