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
1 answer

Bug with transactional replication when databases are not in same collation

We have set up Transactional Replication in which Publisher and Subscriber side databases are put under the same SQL Servers. Publisher database collation along with column-level collation is SQL_Scandinavian_Pref_CP850_CI_AS, whereas the subscriber…
0
votes
1 answer

Transactional Replication setup without truncating or dropping the subscriber database tables

Let's say in SQL Server, I have a publisher database DatabaseA and I created a copy of it and restored it into another SQL Server with the name DatabaseB. Now, if I want to setup the Transactional Replication between DatabaseA and DatabaseB, then…
0
votes
1 answer

SQL Replication 'The process could not connect to Distributor' between vps and laptop

I have 1 SQL server 2017 in London (VPS) and I connect with remote on port 1413 with 'sa' user , that work perfect. I config Distributor and Publisher successfully as shown as on server B : And create subscriber on server A (my Laptop) as shown…
henrry
  • 486
  • 6
  • 25
0
votes
1 answer

Not able to add distributor while configuring transactional replication

I need to setup transactional replication, the publisher is SQL Server 2012 Enterprise edition and the distributor is SQL Server 2017 Standard edition. I am trying to add the distributor, from the distributor configuration wizard when I try to…
Iftekhar Ilm
  • 81
  • 1
  • 9
0
votes
0 answers

Need to replicate stored procedure changes, but not new columns in SQL Server transactional replication

I have a couple of SQL Server 2016 machines, using transactional replication to replicate a portion of the database to a remote server. It is critical that we control what columns are replicated to prevent accidental exposure of certain data. We…
0
votes
1 answer

Replication and CDC SQL 2008r2 what causes some replicated tables to drop CDC?

Transactional replication from SQL 2005 into SQL 2008r2. CDC established on SQL 2008r2 side. Each day, from 2 to 4 of these tables lose their CDC settings (ie. is_tracked_by_cdc in sys.tables moves from 1 to 0 and all CDC objects for that table…
0
votes
1 answer

Transactional Replication failing between SQL Server 2012 and SQL Server 2016 versions

As per the Microsoft documentation - A Subscriber to a transactional publication can be any version within two versions of the Publisher version. For example: a SQL Server 2012 (11.x) Publisher can have SQL Server 2014 (12.x) and SQL Server 2016…
0
votes
0 answers

AWS Database Migration Service causing problem - SQL Server as Source

I have a problem using the AWS Database Migration Service for implementing a transactional replication from SQL Server as a source database engine, a help is highly appreciated. The 'safeguardPolicy' connection attribute defaults to…
tOpsDvp
  • 1
  • 1
0
votes
0 answers

One way DB synchronization using mssql Replication

I am doing DB synchronization via MSSQL Replication utility which is performing well to me. Now my objective: after transfer data to destination DB's table, remove transferred data from the source DB's table. Any help would be highly appreciated. If…
0
votes
0 answers

Snapshot backup size increase after starting transactional replication

The size of the snapshot backups went from 1.6 GB to 16 GB one week later after starting transactional replication. Does anyone know why this might be happening? I'm using SQL Server 2017.
0
votes
1 answer

The subscription status of the object could not be changed

I have set up a transactional replication then I'm tying to generate new snapshot but this error is appearing: Error messages: Message: The subscription status of the object could not be changed. Command Text: sp_MSactivate_auto_sub Parameters: …
Judy
  • 1
  • 1
0
votes
0 answers

What can make a SQL Server transactional publication send foreign keys even when set to false

SQL Server 2012, 2014, 2016 transactional replication Publication is created. (copy Foreign Keys is false, the default) Subscription is created. Snapshot and sync. Turn off synchronization. Upgrade the publication database. Upgrade the subscriber…
JeffM23
  • 3
  • 2
0
votes
1 answer

Validation stored procedure for Replication

Does anyone know of the correct stored procedure that validates the actual code in transactional replication? I have a view that basically is a select * from table1. I changed that view to select * from table2 in the publisher and there is an…
0
votes
1 answer

MSSQL Transactional Replication different versions

we are currently using a 2008R2 publisher/distributor for replication. The subscribers are versions 2008R2 and 2012. Next week, we would like to update our servers step by step. I read in the docs, that the subscriber must be within 2 versions of…
DaDa
  • 3
  • 2
0
votes
2 answers

IBM CDC replication to Azure Event Hub

My project is trying to set up an event stream from on-premise IBM DB2 on z/OS to Azure Event Hubs on Microsoft Azure cloud services. Any inserts, updates and deletes on the DB2 database is to be captured real time and replicated over to Event Hubs…