This topic describes how to run the Sync-NAVTenant cmdlet to synchronize the business data (tenant) database schema with the application database. You can use this cmdlet in a multitenant and non-multitenant deployment environment.

To run the Sync-NAVTenant cmdlet

  1. On the computer that is running the Microsoft Dynamics NAV Server, run Microsoft Dynamics NAV Administration Shell as an Administrator.

    1. Choose Start, in the Search box, type Microsoft Dynamics NAV Administration Shell.

    2. Right-click the related link, and then choose Run as Administrator.

  2. At the command prompt, type one of the following commands:

    • If the Microsoft Dynamics NAV Server instance is not configured to be a multitenant instance:
       Copy Code
      Sync-NAVTenant -ServerInstance <ServerInstanceName>
      
    • If the Microsoft Dynamics NAV Server instance is configured to be a multitenant instance:
       Copy Code
      Sync-NAVTenant -ServerInstance <ServerInstanceName> -Tenant <TenantId>

    Change the following parameter values.

    Parameter Description

    <NAVServerInstance>

    Specifies the Microsoft Dynamics NAV Server instance.

    <TenantId>

    Specifies the name of the tenant database.

  3. Press Enter to run the cmdlet.

See Also