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
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
PAUSE is in there to allow you to see the results if any.
Links:
http://technet.microsoft.com/en-us/library/hh456294.aspx
http://msdn.microsoft.com/en-us/library/hh352314.aspx
Links:
http://technet.microsoft.com/en-us/library/hh456294.aspx
http://msdn.microsoft.com/en-us/library/hh352314.aspx