Share via


How to: Run the Sync-NAVTenant Cmdlet to Synchronize the Tenant Database with the Application Database

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:

      Sync-NAVTenant –ServerInstance <ServerInstanceName>
      
    • If the Microsoft Dynamics NAV Server instance is configured to be a multitenant instance:

      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

Other Resources

Scaling the Microsoft Dynamics NAV Network Topology on Windows Azure
Multitenant Deployment Architecture
Migrating to Multitenancy
Deploying and Managing Microsoft Dynamics NAV on Windows Azure
How to: Add a Microsoft Dynamics NAV Web Server Instance
How to: Add a Microsoft Dynamics NAV Database
How to: Add a Microsoft Dynamics NAV Server Instance