Sync Group issue after dacpac deployment on Member DB

Kalpna Singh 1 Reputation point
2021-06-11T15:32:30.803+00:00

Hi, the SQL Sync Group was working fine earlier. But after deployment on Member Database via Azure DevOps pipeline, the Sync Job started throwing below error,
"Snapshot isolation transaction failed accessing database because snapshot isolation is not allowed in this database. Use ALTER DATABASE to allow snapshot isolation."

Azure SQL Database
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alberto Morillo 33,611 Reputation points MVP
    2021-06-13T21:52:08.297+00:00

    SQL Data Sync is trying to enable on SQL Azure database the same isolation level your database has on premises (snapshot isolation), 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 database, to the same settings it has before the deployment.

    0 comments No comments

  2. Kalpna Singh 1 Reputation point
    2021-06-14T13:19:46.91+00:00

    Allowing SNAPSHOT_ISOLATION for Member Database resolved the issue

    ALTER DATABASE <Database name>
    SET ALLOW_SNAPSHOT_ISOLATION ON

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.