An error is given stating the database Isolation Level state is different between two databases when replicating between an Azure SQL database and an on-premise SQL database using the SQL Agent software installed on the on-premise server.
How do I fix this?
View the isolation state using this sql:
select name, snapshot_isolation_state, is_read_committed_snapshot_on from sys.databases
You want these settings to be both ON like below and the same on both the Azure and on-premise database.
The sql below is used to change the settings:
ALTER DATABASE {name} SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE
GO
ALTER DATABASE {name} SET ALLOW_SNAPSHOT_ISOLATION ON
GO