Get-NAVApplication

Gets information about the application database that is mounted against the specified Business Central Server instance.

Syntax

Get-NAVApplication
   [-ServerInstance] <String>
   [-Force]
   [<CommonParameters>]

Description

Use the Get-NAVApplication cmdlet to get information about the application database that is mounted against the specified Business Central Server instance.

If no application is mounted, use the Mount-NAVApplication cmdlet to mount an application. The cmdlet returns the name of the database server and the name of the application database.

If you have not exported the application tables to a dedicated application database, the Get-NAVApplication cmdlet returns the database that contains the application tables, such as 'Demo Database NAV (11-0)'.

Examples

EXAMPLE 1

Get-NAVApplication -ServerInstance BC

This example returns information about the application database that is mounted against the BC server instance.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServerInstance

Specifies the name of a Business Central Server instance, for example, BC or myinstance. You can specify either the full name of an instance, such as MicrosoftDynamicsNavServer$myinstance or the short name such as myinstance.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

You can pass the value of the ServerInstance parameter as a string to this cmdlet.

Outputs

System.Data.DataRow

The cmdlet returns the name of the database server and the name of the application database as a data row.