Create-NAVDatabase
Creates a new Business Central application database.
Syntax
Create-NAVDatabase
[-DatabaseName] <String>
[-DatabaseServer <String>]
[-Collation <String>]
[-LogPath <String>]
[<CommonParameters>]
Create-NAVDatabase
[-DatabaseName] <String>
[-DatabaseServer <String>]
[-Collation <String>]
[-LogPath <String>]
-Username <String>
-Password <String>
[<CommonParameters>]
Description
The Create-NAVDatabase creates a new NAV database that includes the NAV system tables.
Examples
EXAMPLE 1
Create-NAVDatabase MyNewApp
Creates a new NAV database named MyNewApp.
EXAMPLE 2
Create-NAVDatabase MyNewApp -ServerName "TestComputer01\NAVDEMO" -Collation "da-dk"
Creates a new NAV database named MyNewApp on TestComputer01\NAVDEMO Sql server with Danish collation.
Parameters
-Collation
Specifies the collation of the database.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DatabaseName
Specifies the name of the Business Central database that will be created.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | 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 (.).
Type: | String |
Position: | Named |
Default value: | . |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogPath
Specifies the log folder.
Type: | String |
Position: | Named |
Default value: | "$Env:TEMP\NavIde\$([GUID]::NewGuid().GUID)" |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | 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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | 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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
You cannot pipe input into this function.
Outputs
None