Share via


Sync-NAVTenant

Sync-NAVTenant

Synchronizes a tenant database schema with an application database.

Syntax

Parameter Set: __AllParameterSets
Sync-NAVTenant [-ServerInstance] <String> [-Force] [-Tenant <TenantId> ] [ <CommonParameters>]

Detailed Description

Use the Sync-NAVTenant cmdlet to synchronize the database schema in a tenant database with the schema in the application database.

The application database contains tables that define the application. The tenant database must contain the SQL Server tables that the application prescribes.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServerInstance<String>

Specifies the Microsoft Dynamics NAV Server instance that the application database and the tenant database are mounted against, such as DynamicsNAV71. You can specify either the fully qualified name, such as 'MyServer$DynamicsNAV71', or the short name, such as 'DynamicsNAV71'.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Tenant<TenantId>

Specifies the ID of the tenant that you want to synchronize with the application, such as Tenant1. The tenant will be synchronized with the Microsoft Dynamics NAV application that is mounted against the same Microsoft Dynamics NAV Server instance.

This parameter is required unless the specified service instance is not configured to run multiple tenants.

Aliases

Id

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

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

Description

-----------

This example synchronizes a tenant, 'Tenant1', with the application that is mounted against the specified Microsoft Dynamics NAV Server instance.

PS C:\> Sync-NAVTenant –ServerInstance DynamicsNAV71 -Tenant 'Tenant1'