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
1
vote
3 answers

Wrapper stored procedure to create publication for transactional replication

I have created a wrapper stored procedure to create publication for transactional replication for SQL Server 2008 Standard Edition SP3. But when I execute the procedure I get the following error. The column "file_exists" is not user defined. This…
0
votes
1 answer

Transactional Database Replication over an unreliable channel

I wanted to set up database replication (transactional) between 2 offices and I was wondering if it's advised to do so over an unreliable channel? I plan to set up this transactional replication on a VPN over the internet, and I'm trying to account…
0
votes
1 answer

Data is not getting updated in subscriber

I was testing Transactional Replication on my machine before setting up on PROD but when I do a UPDATE that update is not getting propagated to the subscriber and when I see the replication monitor I see a lots of error message saying can't drop…
Rahul
  • 76,197
  • 13
  • 71
  • 125
0
votes
0 answers

Disable Replication, Keep Replicated Tables?

I have transactional replication set up between Database1 and Database2 using SQL Server 2017. About 20 tables are being replicated to Database2, a few of them are pretty large. I would like to disable replication but at the same time I would…
0
votes
1 answer

Adding a new article in Transactional replication when subscription replica is setup using AWS DMS services

How do I add a new table to an existing transaction replication on SQL server 2017 where secondary replica is setup using AWS DMS service?. While setting up we have only created distribution and publication on sql server and the client team had…
0
votes
2 answers

Can SQL Transactional Replication work between SQL 2005 Standard (Publisher) and SQL 2008 R2 Web (Subscriber)?

I've been trying, googling and hitting my head against the wall but can't figure our what the problem is or how to solve it. I have and SQL 2005 Standard server acting as a publisher. I need to do transactional replication to an SQL 2008 R2 Web…
0
votes
0 answers

Transactional replication on dedicated server using AG Listener

I have dedicated server to setup transactional replication. i want to replicate 3 tables only Availability Database. The tricky part is, I want my transactional replication to continue automatically if automatic failover happen. Is there any way to…
0
votes
1 answer

Change Data Capture and Transactional Replication Conflict

When trying to activate the Change Data Capture (CDC) feature, and there is already a Transactional Replication solution running in the SQL Server Instance, a conflict is generated. We tried stopping the Replication publication agent (through the…
0
votes
0 answers

Connection Error When Setting Up a Subscription for SQL Server (Transactional) Replication

I am encountering a connection to the target database error while setting up a Subscription for SQL Server (Transactional) Replication in SSMS. I can connect to the target server database from the local SSMS using local SQL Server authentication.…
0
votes
0 answers

SSDT ReportedElement cannot be null

We get the following error when trying to deploy the SSDT Database project enter image description here We have a DB Project in VS2022 that we enabled AlwaysEncrypted on. This was working without issue and we deployed using the Excluded Master and…
0
votes
0 answers

The concurrent snapshot for publication xxx is not available because it has not been fully generated

I'm having trouble running replication on sql server 2019. On replication monitor in Distributor to Subscriber history section I get action message: The concurrent snapshot for publication xxx is not available because it has not been fully…
0
votes
0 answers

SQL Server 2014 : Merge replication and transactional on same database

We currently have merge replication setup between Server 1 and Server 2. Server 2 is in a different geographic location. The merge replication is there so that users in the same region as Server 2 hit the database on Server 2 and those closest to…
0
votes
0 answers

C# net core reinitialization transactional replication

Is there possibility to reinitialize sql transactional replication db by C#. Net core code? I have configured transactional replication but in case it doesn't work I would like to restart it... I haven't found any solution. I tried implement…
Mike
  • 1
  • 1
0
votes
0 answers

Transaction replication Error at the subscriber

I was working on a transaction replication on SQL server 2017.A delete command can not be replicated because there is no record that matches the delete condition on the subscriber. Normally I solve this error with this method. use…
0
votes
0 answers

Redshift to redshift ongoing sync using AWS data pipeline

We would like to explore the possibility of replicating 'some of the tables' our data warehouse on AWS Redshift into another Redshift cluster in an ongoing manner. Don't ask me why as the reasons involve different teams wanting to do do things…