Azure SQL sync failed due to snapshot isolation in other azure database in other region

peter 26 Reputation points
2021-10-21T02:12:29.913+00:00

Having issues with the above.

Error Message reads ;

Sync failed with the exception "SqlException ID: 7ed05768-c403-4de2-82a6-9786fc4d2db1, Error Code: -2146232060 - SqlError Number:3952, Message: Snapshot isolation transaction failed accessing database 'TestData' because snapshot isolation is not allowed in this database. Use ALTER DATABASE to allow snapshot isolation. For more information, provide tracing ID ‘0763be30-388e-460b-ba8d-f65594f57bc4’ to customer support."

Read all the doc and have also done the following .

using in TSQL in SSMS

ALTER DATABASE TestData
SET ALLOW_SNAPSHOT_ISOLATION ON

ALTER DATABASE TestData
SET READ_COMMITTED_SNAPSHOT ON

142321-image.png

Azure SQL Database
Azure SQL Edge
Azure SQL Edge
An Azure service that provides a small-footprint, edge-optimized data engine with built-in artificial intelligence. Previously known as Azure SQL Database Edge.
45 questions
0 comments No comments
{count} vote

Accepted answer
  1. Alberto Morillo 32,896 Reputation points MVP
    2021-10-21T16:56:41.46+00:00

    SQL Data Sync is trying to enable on SQL Azure database the same isolation level your database has on premises, but it is not possible to change the isolation level of a SQL Azure database. That is the reason the SQL Data Sync process will fail.

    Set the isolation level of the member database, to the same settings it has before the deployment of Data Sync. Set the isolation level to read committed (SQL Server default) or to READ_COMMITTED_SNAPSHOT.

    alter database [DB] set read_committed_snapshot on with rollback immediate;
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful