Setting up Azure SQL data sync's sync group

556 Views Asked by At

I just tried setting up Azure SQL data sync's sync group using sample Azure SQL database. I am syncing dbo.BuildVersion table of the sample database.

I get the following error on member database.

Database provisioning failed with the exception "Incorrect syntax near the keyword 'NOT'.Inner exception: SqlException ID: 39f49622-6a56-4a44-8e55-2a646f99a584, Error Code: -2146232060 - SqlError Number:156, Message: SQL error with code 156 For more information, provide tracing ID ‘679953bc-7dac-4490-89e9-ea6d145d0442’ to customer support."

How should I resolve this issue?

Thanks

2

There are 2 best solutions below

0
On

I am able to resolve this issue by creating empty table in the member database first and then running the sync.

Does Sync service not create table when table does not exist in the member database?

2
On

It does create it, however, under certain circumstances it fails to create it do to some issue with the schema itself. Therefore, the workaround, as you figured out, is to create the table manually.