Initialize-AXModelStore

Initialize-AXModelStore

Initializes the schema of the model store in a Microsoft Dynamics AX database.

Syntax

Parameter Set: Default
Initialize-AXModelStore [-AOSAccount <String> ] [-Config <String> ] [-Createdb] [-Database <String> ] [-Drop <String> ] [-NoPrompt] [-SchemaName <String> ] [-Server <String> ] [ <CommonParameters>]


Detailed description

The Initialize-AXModelStore cmdlet can be used to create an empty model store associated with the specified schema, update the existing model store, or drop the model store. This cmdlet can be used to create a separate database for storing model store backups.

Parameters

-AOSAccount<String>

Grants permissions to the model store in the Microsoft Dynamics AX database to the account that an Application Object Server instance is running as. The account is granted EXECUTE rights for the appropriate stored procedures, and SELECT rights for the appropriate views. Use this account primarily when moving a model store to a new environment.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Config<String>

Specifies an Application Object Server (AOS) configuration to use to determine the model store database and server name. The default value is the currently active configuration. This parameter cannot be used with the Database or Server parameters. If no Database or Server parameters are supplied, the default configuration is used.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Createdb

Create a database.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Database<String>

Specifies the Microsoft Dynamics AX model store database. This parameter cannot be used with the -Config parameter. If the -Database parameter is specified without a -Server parameter, the default server value of "(local)" is used.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Drop<String>

Removes the specified schema from the model store in the Microsoft Dynamics AX database.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NoPrompt

Specifies that no prompts be shown when a schema is dropped.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SchemaName<String>

Specifies a schema name to create a model store in. If this parameter is not specified, the dbo schema is used.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Server<String>

Specifies the server that hosts the Microsoft Dynamics AX model store database. This parameter can only be used with the -Database parameter--it cannot be used by itself.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, OutBuffer, OutVariable, WarningAction, and WarningVariable. For more information, see about_CommonParameters http://go.microsoft.com/fwlink/?LinkID=113216

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

    You cannot pipe input to this cmdlet.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • None

    The cmdlet does not generate any output.


Examples

This example creates an empty model store in AXTest server Test1 database, under the Test schema, with rights granted to the Contoso\AxAOS account.


PS C:\>Initialize_AXModelStore -AOSAccount "Contoso\AxAOS" -SchemaName Test -Server AXTest -Database Test1

PS C:\>
						

Related topics



Copyright Microsoft Corporation. All rights reserved.
Show: