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

SQL Server : How to prevent Replication on Batch delete and allow on Daily basis delete operation?

I have a Transactional Replication running on SQL Server 2012. It replicates INSERT, UPDATE and DELETE. Now im facing a condition (for DELETE Statement) where it forces us to : Replicate only daily-basis DELETE Operation DO NOT Replicate a…
jsdev
  • 672
  • 6
  • 14
0
votes
1 answer

SQL Server Transactional Replication: pushing a row to subscriber tables

I'm researching SQL Server Transactional Replication. We are developing three internal applications where each application will have its own database. We have a need to allow the same user access the different applications. We are thinking of having…
0
votes
0 answers

SQL Server Transactional Replication Missing articles

I am experimenting with Transactional Replication in SQL Server 2014 Standard edition. Replication has been setup and is mostly working with the exception of some views and functions that are missing at the subscriber after the initial snapshot.…
Jason
  • 1
0
votes
1 answer

Add Primary key on ManyToMany (for Publication)

I have a ManyToMany relation between two entity @javax.persistence.Entity @Table(name = "t_aircraft_model") public class AircraftModel extends DbObject { @ManyToMany(fetch=FetchType.LAZY) @JoinTable(name = "t_aircraft_model_entity",…
jpprade
  • 3,497
  • 3
  • 45
  • 58
0
votes
2 answers

SQL - Transactional replication, can consumer content be updated from other clients

We are investigating the possibility to use transactional replication for an archive / reporting database in order to offload the production database. If we use the same software/client for accessing the archive, the client will update some tables…
Hans
  • 269
  • 4
  • 14
0
votes
0 answers

Infinispan 7 - Update of Existing Keys are not being Replicated to other Nodes

We are using Infinispan 7.2.1 as replicated persisted cache between 2 nodes. We are using also Tomcat and Spring. No hibernate involves. The first node is reading and writing to the cache. The second node is only reading from the cache. The…
0
votes
1 answer

Transactional replication on SQL server without primary key

We are implementing a snapshot replication on our current system Lately, the system require us to apply the "instant replication" (require the low latency between articles on Publisher and Subscriber) Unfortunately, the tables on Publisher have not…
wraith
  • 351
  • 3
  • 18
0
votes
1 answer

Problems with an orphaned replication

I'm pretty new to SQL Server, so of course I'm doing all the DBA tasks. I pulled a boneheaded move last week, and when I did a restore on a test DB, it overwrote the replication. So, I deleted as best as I can see the replication, which is a push…
0
votes
0 answers

Column cannot be converted from 'tinyint' to type 'int(12) unsigned in MySQL 5.6 replication

I am having an issue in mysql 5.6 replication when trying to upgrade tinyint to int(12). I have upgraded a column at slave from tinyint(4) to int(12) and after a few minutes got below replication error : Column 9 of table…
Harsh Pandit
  • 101
  • 1
  • 5
0
votes
1 answer

sql replication error - record exists on Publisher but it's trying to delete/insert that on Subscriber, so Foreign Key/Primary Key violation

We have transactional one-way replication running, and suddenly today started getting this error : The DELETE statement conflicted with the REFERENCE constraint "FK_BranchDetail_Branch". The conflict occurred in database "LocationDB", table…
d-_-b
  • 761
  • 2
  • 11
  • 26
0
votes
0 answers

SQL Server Transactional Replication - Subscriber loses connection to publisher

I have a transactional replication process set up to replicate changes on a database between two SQL Server systems. The replication process is bi-directional (there is a publisher and a subscriber at both ends), except that DDL changes can only…
0
votes
1 answer

SQL Server Replications - Objects to include

Are there any SQL Server Replication Best Practices? Are there any links I can read up on? I’m using 2012 and 2014. I want to know, in general, what type of database objects typically people replicate from the source instance (publication) to the…
sydney
  • 131
  • 8
  • 19
0
votes
1 answer

SQL Server Snapshot on live DB

I am in need of some help.I want to reinitialize one of my subscribers with a new snapshot.my previous snapshot i generated was when activity was low on the production database.It took under 2 minutes. My question is,can i generate a new snapshot…
JJDev
  • 173
  • 1
  • 3
  • 15
0
votes
2 answers

Transactional replication errors

I'm trying to set up transactional replication in SQL Server 2012 using AdventureWorks 2012. And right at the end of the publications setup i get the following error: SQL Server could not start the Snapshot Agent. Additional Information: An…
0
votes
2 answers

Best practice to recover an CRUD statement to a linked server if connection is lost

I am looking for the best practice for the following scenario. We have a CRM in our company. When an employee updates the record of a company, there is trigger that fires a stored procedure which has a CRUD statement to the linked server hosting the…