< Back

Initialize-AXModelStoreV2

Sat Jan 11, 2020 8:16 am

NAME Initialize-AXModelStoreV2



SYNOPSIS

Initialize an AX 2012 modelstore





SYNTAX

Initialize-AXModelStoreV2 [-DatabaseServer <String>] [-ModelstoreDatabase <String>] [-SchemaName <String>]

[-CreateSchema] [-ShowOriginalProgress] [<CommonParameters>]



Initialize-AXModelStoreV2 [-DatabaseServer <String>] [-ModelstoreDatabase <String>] [-SchemaName <String>]

[-DropSchema] [-ShowOriginalProgress] [<CommonParameters>]



Initialize-AXModelStoreV2 [-DatabaseServer <String>] [-ModelstoreDatabase <String>] [-CreateDb]

[-ShowOriginalProgress] [<CommonParameters>]



Initialize-AXModelStoreV2 [-DatabaseServer <String>] [-ModelstoreDatabase <String>] [-ShowOriginalProgress]

[-OutputCommandOnly] [<CommonParameters>]





DESCRIPTION

Initialize an AX 2012 modelstore against a modelstore database





PARAMETERS

-DatabaseServer <String>

Server name of the database server



Default value is: "localhost"



Required? false

Position? named

Default value $Script:ActiveAosDatabaseserver

Accept pipeline input? false

Accept wildcard characters? false



-ModelstoreDatabase <String>

Name of the modelstore database



Default value is: "MicrosoftDynamicsAx_model"



Note: From AX 2012 R2 and upwards you need to provide the full name for the modelstore database. E.g.

"AX2012R3_PROD_model"



Required? false

Position? named

Default value $Script:ActiveAosModelstoredatabase

Accept pipeline input? false

Accept wildcard characters? false



-SchemaName <String>

Name of the schema in the modelstore database that you want to work against



Default value is: "TempSchema"



Required? false

Position? named

Default value TempSchema

Accept pipeline input? false

Accept wildcard characters? false



-DropSchema [<SwitchParameter>]

Instruct the cmdlet to drop the schema supplied with the -SchemaName parameter



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-CreateSchema [<SwitchParameter>]

Instruct the cmdlet to create the schema supplied with the -SchemaName parameter



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-CreateDb [<SwitchParameter>]

Instruct the cmdlet to create a new modelstore inside the supplied -ModelstoreDatabase parameter



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-ShowOriginalProgress [<SwitchParameter>]

Instruct the cmdlet to show the standard output in the console



Default is $false which will silence the standard output



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-OutputCommandOnly [<SwitchParameter>]

Instruct the cmdlet to only generate the needed command and not execute it



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String





NOTES





Author: M??????tz Jensen (@Splaxi)



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Initialize-AXModelStoreV2 -SchemaName TempSchema -CreateSchema



This will execute the cmdlet with some of the default values.

This will work against the SQL server that is on localhost.

The database is expected to be "MicrosoftDynamicsAx_model".

The cmdlet will create the "TempSchema" schema inside the modelstore database.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Initialize-AXModelStoreV2 -SchemaName TempSchema -DropSchema



This will execute the cmdlet with some of the default values.

This will work against the SQL server that is on localhost.

The database is expected to be "MicrosoftDynamicsAx_model".

The cmdlet will drop the "TempSchema" schema inside the modelstore database.











RELATED LINKS