title | description | ms.custom | ms.date | ms.reviewer | ms.service | ms.topic | author | ||
---|---|---|---|---|---|---|---|---|---|
Synchronize the Tenant Database with the Application Database |
This article describes how to synchronize the business data (tenant) database schema with the application database in a single tenant or multitenant deployment environment |
|
04/01/2021 |
jswymer |
dynamics-365-op |
conceptual |
jswymer |
This article describes how to synchronize the business data (tenant) database schema with the application database in either a single tenant (non-multitenant) or multitenant deployment environment. You can synchronize the database from the [!INCLUDEnav_dev_long] or by using the Sync-NAVTenant cmdlet in the [!INCLUDEadminshell].
APPLIES TO: [!INCLUDEprod_short] Spring 2019 and earlier.
-
Open [!INCLUDEnav_dev_short] as an administrator.
-
On the Tools menu, choose Sync. Schema For All Tables, and then choose With Validation and follow the schema synchronization instructions.
-
On the computer that is running the [!INCLUDEserver], run [!INCLUDEadminshell] as an Administrator.
-
Choose Start, in the Search box, type [!INCLUDEadminshell].
-
Right-click the related link, and then choose Run as Administrator.
-
-
At the command prompt, type one of the following commands:
-
If the [!INCLUDEserver] instance isn't configured to be a multitenant instance:
Sync-NAVTenant –ServerInstance <ServerInstanceName>
-
If the [!INCLUDEserver] instance is configured to be a multitenant instance:
Sync-NAVTenant –ServerInstance ServerInstanceName -Tenant TenantId
Change the following parameter values.
Parameter Description ServererInstanceName Specifies the [!INCLUDEserver] instance. TenantId Specifies the ID of the tenant. -
-
Select Enter to run the cmdlet.
Converting a Database.md
Upgrading the Database
Multitenant Deployment Architecture