Questions tagged [transactional-replication]

Transactional replication typically starts with a snapshot of the publication database objects and data. As soon as the initial snapshot is taken, subsequent data changes and schema modifications made at the Publisher are usually delivered to the Subscriber as they occur (in near real time).

Transactional replication typically starts with a snapshot of the publication database objects and data.

As soon as the initial snapshot is taken, subsequent data changes and schema modifications made at the Publisher are usually delivered to the Subscriber as they occur (in near real time).

The data changes are applied to the Subscriber in the same order and within the same transaction boundaries as they occurred at the Publisher; therefore, within a publication, transactional consistency is guaranteed.

Transactional replication is typically used in server-to-server environments and is appropriate in each of the following cases:

  • You want incremental changes to be propagated to Subscribers as they occur. The application requires low latency between the time changes are made at the Publisher and the changes arrive at the Subscriber.

  • The application requires access to intermediate data states. For example, if a row changes five times, transactional replication allows an application to respond to each change (such as firing a trigger), not simply the net data change to the row.

  • The Publisher has a very high volume of insert, update, and delete activity. The Publisher or Subscriber is a non-SQL Server database, such as Oracle.

By default, Subscribers to transactional publications should be treated as read-only, because changes are not propagated back to the Publisher. However, transactional replication does offer options that allow updates at the Subscriber.

Source: Transactional Replication

290 questions
0
votes
2 answers

Replication new article being added to transactional replication, snapshot generated but not applied, no errors

We have replication setup on two 2016 servers. Distribution and publisher are on the same instance. We have transactional replication running at this time with no issue. We are trying to add a new table to replication and these are the steps we…
0
votes
2 answers

Data replication between Oracle and Postgres

Is there a way to replicate data(like triggers or jobs) from oracle tables to postgres tables and vice versa(for different set of tables) without using external tools? Just one way replication for both the scenarios.
0
votes
2 answers

Cannot drop the distribution database 'distribution' on managed instance

I am not able to delete the distributor and distribution database because it is saying that it is currently in use on Azure Managed Instance.I tried transactional replication between azure managed instance to azure sql vm. Then I was trying to…
0
votes
0 answers

Is there any script to copy data from distribution database to another user created database?

Due to limited size of distribution db I wish to shift or copy data from there to another database using script.Is there any script that copies data from distribution database(System Database) to another user created database using a job at specific…
0
votes
0 answers

SQL Replication error: "The row was not found at the subscriber" but point to a table of another publication

I get the following error in Replication Monitor: The row was not found at the Subscriber when applying the replicated UPDATE command for Table '[dgv].[POSCustomer]' with Primary Key = The error is actually not about the missing row, but that the…
Van
  • 1
  • 2
0
votes
0 answers

How can I identify the deadlock when I enable TR Snapshot replication?

Is there anyway to identify by how much time we can get a deadlock when we enable Snapshot replication for our subscriber, we have a subscriber considered as Azure SQL Database, and we have 8 databases one of them consists of 200GB in size. Is there…
0
votes
0 answers

The process could not execute 'sp_MSadd_replcmds' on 'MY-DB'?

I am dealing with an issue reagrding transactional replication, I am taking a backup from the publisher and restoring it onto the subscriber, when I try to enable the transactional replication between the two O got the error stating The process…
0
votes
0 answers

Replicate TBs of data between AWS rds and on premise sql instances in < 5 mins

I have just started a project with some fairly daunting requirements. Company A uses an application that writes records to Company B. The task is to move/update/sync very large amounts of data (195 tables and 2500 gb of data, millions and millions…
0
votes
2 answers

AWS DMS (Database Migration Service) SQL Server to SQL Server not replicating changes

I have 2 AWS SQL Servers (as RDS instances) in the same VPC, however one is in a private subnet (the source) and one is in a public subnet (the target). I am replicating FROM SQL Server Standard Edition TO SQL Server Web Edition. I have set up DMS…
0
votes
1 answer

SQL Server replication model snapshot, transactional and merge - which is best

I am trying to implement sql server database replication between 2 branch servers to a Head Office Server. My application is a distributed one, the main application is hosted on head office which is controlling the masters and final approvals. The…
0
votes
1 answer

TDE protected db replication to Azure

I have a TDE protected database which I want to extend to Azure using replication. My question is, do I have to restore certificate on the Azure database before I start setting up the database as the subscriber?
0
votes
0 answers

Sql Server replication - add articles without using wizard

I have done transnational replication to my SQL Server 2014 instance. There are two db servers subscribing to it. Currently I have added only some of the tables (10 tables) as articles to replicate. However, in the future there will be new tables…
0
votes
1 answer

Automatically restart SQL Server Replication after server restart

After restarting the Windows Server on which SQL Server is running I get the following error in my Application Event Log: Replication-Replication Distribution Subsystem: agent failed. The subscription(s) have been marked inactive and…
0
votes
1 answer

SQL Server log reader agent output messages

I would like to ask what is the meaning of pass #1, pass #3 in SQL Server replication monitoring, when the log reader agent scan the transaction log with huge log records (as showed in the attached screenshot). Does SQL Server also have pass #2,…
Lukas85
  • 1
  • 2
0
votes
1 answer

Replication setup from higher version to lower version In SQL Server

Is it possible to create Transactional Replication setup between 2017 Enterprise edition to 2005 Standard edition in MS SQL Server? I heard that it is possible through scripts, is it right?