Azure Data Sync Clustered Index Error

[亡魂溺海] 提交于 2019-12-11 15:00:03

问题


We are trying to setup an Azure Database Sync group to replicate our data from an on-premise server to an Azure SQL database. This as a first step for a migration to Azure.

The Sync Group and Sync Agent have all been set up. When we press the 'Sync' button we receive following error:

Trigger Sync Failed: Failed to perform data sync operation: Table '[dbo].[DocumentTypeDocumentVariables]' do not have clustered index.

This table did not have a clustered index but an unclustered unique primairy key index.

  • We tried to add an clustered index but this give the same error.
  • We tried to remove the unclustered PK index and created a unique clustered PK index but this gives us the same error.

What could be wrong ?


回答1:


Please recreate the database on Azure SQL Database with the same schema (including indexes) as the on-premise database and with no data, then try to configure SQL Data Sync. You can create a script with no data of the on-premise database using SQL Server Management Studio and then use the script to recreate all database objects on Azure SQL Database. Having no data on Azure will make the initial sync faster also. If both database schemas have differences then SQL Data Sync won't work



来源:https://stackoverflow.com/questions/48922874/azure-data-sync-clustered-index-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!