Share via


Invoke-NAVDatabaseConversion

Performs a technical upgrade of a database from a previous version of Business Central.

Syntax

All (Default)

Invoke-NAVDatabaseConversion
    [-DatabaseName] <String>
    [-DatabaseServer <String>]
    [-LogPath <String>]
    [-SuppressElevationCheck <String>]
    [<CommonParameters>]

DatabaseAuthentication

Invoke-NAVDatabaseConversion
    [-DatabaseName] <String>
    -Username <String>
    -Password <String>
    [-DatabaseServer <String>]
    [-LogPath <String>]
    [-SuppressElevationCheck <String>]
    [<CommonParameters>]

Description

Performs a technical upgrade of a database from a previous version of Business Central.

Examples

EXAMPLE 1

Invoke-NAVDatabaseConversion MyApp

Perform the technical upgrade on a NAV database named MyApp.

EXAMPLE 2

Invoke-NAVDatabaseConversion MyApp -ServerName "TestComputer01\NAVDEMO"

Perform the technical upgrade on a NAV database named MyApp on TestComputer01\NAVDEMO Sql server .

Parameters

-DatabaseName

Specifies the name of the Business Central database that will be created.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DatabaseServer

Specifies the name of the SQL server instance on which you want to create the database. The default value is the default instance on the local host (.).

Parameter properties

Type:String
Default value:.
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LogPath

Specifies the log folder.

Parameter properties

Type:String
Default value:"$Env:TEMP\NavIde\$([GUID]::NewGuid().GUID)"
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Password

The password to use with the username parameter to authenticate to the database. If you do not specify a user name and password, then the command uses the credentials of the current Windows user to authenticate to the database.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DatabaseAuthentication
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SuppressElevationCheck

Specifies whether to check that the cmdlet is running in elevated mode (as an administrator). If not in elevated mode, you get a warning that proceeding might cause errors. You are given the option to continue or cancel.

No or 0 runs the check. No is the default setting.

Yes or 1 suppresses the check.

Parameter properties

Type:String
Default value:No
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Username

The user name to use to authenticate to the database. The user name must exist in the database. If you do not specify a user name and password, then the command uses the credentials of the current Windows user to authenticate to the database.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DatabaseAuthentication
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

You cannot pipe input into this function.

Outputs

None