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
0 answers

Problems starting Replication on large databases - SQL 2012

I have been battling SQL Server for a week trying to get replication up and running, now I realize that most probably I am doing something wrong and I hope that one of you can help pointing me in the right direction. I want to start replication of a…
Daniel S.
  • 1
  • 1
0
votes
1 answer

Restore replication from backup on two subscribers

Hi have a big database (~30GB) that I need to replicate to two server on two different locations. I enabled replication and enabled "allow initialize from backup" and did the following steps: backup the database on master server copy backup file to…
0
votes
1 answer

Error with replication

One of my transaction replication started to throw error: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Name". The conflict occurred in database "Database", table "dbo.table", column 'ID'. (Source: MSSQLServer, Error…
0
votes
1 answer

Execute a stored procedure after transactional replication

I'm trying to create a snapshot of a database that I will use for reporting. The requirements are to capture specific tables in the production database. Afterwards, I need to execute a stored procedure that will normalize a particular table column…
0
votes
1 answer

Transactional replication failing

i am facing issue in sql server Transactional replication and not able to get the root cause for it. First, let me tell you that i am not a DBA, so i may be dumb on few DBA concepts. i am .Net developer and i have been given responsibility to setup…
0
votes
0 answers

TSQL replication sp_addsubscription, sp_link_publication deadlock

While programmatically setting up Push replication, I am noticing I am deadlocking when running sp_link_publication. The deadlock seems to be related to trigger order. Here's what I think is going wrong: var publisherSubscriptionParams = new…
0
votes
1 answer

The Process Could Not Read File Due to OS Error 53

I have hunted high and low for a fix to this, but everything is saying the same - a permissions error. The error given in the replication monitor clearly states it, but I can't see what I have got wrong. The set-up (sorry for all the red lines in…
0
votes
1 answer

SQL Server Express 2012 Pull Sync via RMO doesn't see subscription

I am trying to set up replication between SQL Server 2012 and SQL Server Express 2012. I've set up the publication and the subscriptions through SSMS, and am trying to get syncing done via RMO. I've followed the answer here, and I get an error…
Andrew Martin
  • 151
  • 3
  • 10
0
votes
2 answers

How the inform the c# application about database(sql server) changes

I'm working on a c# application. In this application there is master database and a slave database. Master database update data in slave database using transcriptional replication (I have implemented it and it is working fine). My issue is that when…
0
votes
1 answer

Transactional Replication

We have transaction replication between two server (production and staging) which is running on SQL Server 2008 R2. The distributor is running on the staging server. Now my management is asking to create a copy of database on the production…
0
votes
1 answer

impact of sqlserver Name change on production database

I working on Creating a replication Between sqlserver on a non-trusted domain.But i have come to realize that i can only use the servername instead of the ip address of my server.I tried using the current server name i got from the sysadmin.But…
kombo
  • 655
  • 3
  • 11
  • 26
0
votes
1 answer

SQL Replication (subscriber) can't connect to publication

I have 2 virtual machines, one with SQL Server 2008 R2 and another with SQL Server 2012 Express. On 1 I have configuration for replication (publication), and I would like to setup Express version as a subscriber. But I can't to connect to publisher…
Arbejdsglæde
  • 13,670
  • 26
  • 78
  • 144
0
votes
1 answer

Setup Replication on two database on different domain

I have two servers.i Want to setup Replication( Transactional publication ) between the two servers.The servers are on different domain. After Going through the configuration for Distributor,Publisher and Subscriber. I View the Syncronization…
kombo
  • 655
  • 3
  • 11
  • 26
0
votes
1 answer

I cannot add new publication for snapshot replication

i'm gonna create a snapshot replication on sql server 2008 R2 database instance, but when on Replication Node, on Local publications , i'm using new publication sub menu, i get this error Message : New Publication Wizard SQL Server is unable to…
ozzy_mra
  • 577
  • 4
  • 11
  • 24
0
votes
2 answers

Replication - Adding article to a publication causing the snapshot of all other articles

Adding an article(table) to a publication, and then running the snapshot agent should create a snapshot only for the new article. However, sometimes replication decides to re-snapshot every article in the publication. So, I have 2 questions: Why…
Lab
  • 1