Thursday, 2 February 2012

Common used commands for model move [AX 2012]

These are common commands I use to move models on internal environments.
Place these in a batch file and name accordingly. Then all you have to do is run them.

Delete isv layer
"%ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities\AxUtil" delete /layer:isv /db:TestDb /s:SQLSERVER
PAUSE

Delete usr layer
"%ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities\AxUtil" delete /layer:usr /db: TestDb  /s:SQLSERVER
PAUSE

Export model
"%ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities\AxUtil" export /model:"MyModel" /file:"\\sharedfolder\mymodel.axmodel" /db:DevDb /s:SQLSERVER
PAUSE

Import model
"%ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities\AxUtil" import /file:"\\sharedfolder\mymodel.axmodel" /db: TestDb /s:SQLSERVER
PAUSE


No comments: