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

SQL Server 2008 R2 Replication Failing w/ Error 1204

I am working on a SQL Server 2008 R2 server. On this server are two instances (let's call them A and B). A replicates one of it's databases to B using a transactional replication. This replication however became inactive and the snapshot deleted…
1
vote
0 answers

How to manage change data capture with Teradata?

I am facing a problem...how to do change data capture with Teradata as a source. I've found several tools but all of them use Teradata only as a target and sources are "traditional" database systems like Oracle, DB2... The closest shot I have is…
1
vote
1 answer

Replication related issue,

Replication related issue, I am explaining my architecture . I have created , its transactinal replication process 2 Publisher on table vendors script I have given below, A Distributor 2 Subscribers Data replication set up is like this as :…
Dhiva
  • 221
  • 1
  • 4
  • 6
1
vote
2 answers

Replacing SQL replication

We are looking to replace SQL SERVER replication. Today we've got several version on SQL installations because SQL replication does not support working with different SQL versions (2005 and 2008 for example), so instead of having several…
DnL
  • 141
  • 1
  • 2
  • 17
1
vote
1 answer

Check SQL Server Replication Defaults

We have a database a that is replicated to a subscriber db b (used for SSRS reporting) every night at 2.45 AM. We need to add a column to one of the replicated tables since it's source file in our iSeries is having a column added that we need to use…
1
vote
1 answer

Log Shipping vs Replciation Vs Mirroring in SQL server 2012

I have a SQL Server 2012 database which currently used as a transactional database and reporting database. The application reads/writes into the same database and the reports are also generated against the same database. Due to some performance…
1
vote
1 answer

Sql Server subscription agent in running state

We have a snapshot replication setup with push subscription. Now we have setup a second subscriber. We followed below steps: a) Run snapshot agent - completed. b) Run the old distribution agent - completed. c) Run the new distribution agent to…
Nishant Bhardwaj
  • 638
  • 1
  • 6
  • 13
1
vote
2 answers

Can I add a delay to sql server transactional replication?

I've got transactional replication configured from a database called DBProd to another database called DBWarehouse ; everything works fine, and transaction are usually replicated instantaneously to the warehouse .... which is my problem. I'd like to…
Brann
  • 31,689
  • 32
  • 113
  • 162
1
vote
1 answer

how to add an article (table) to peer-to-peer replication in sql server2012

I have configured peer-to-peer replication between 2 nodes. I have followed this instruction step-by-step:…
1
vote
0 answers

SQL Server 2012 transactional replication: getting "row was not found" and "cannot insert duplicate key in object" errors

For a long time all was ok. But now (couple of weeks, maybe) I am getting this weird errors in replication monitor: One DB has error 2627 (Violation of %ls constraint '%.*ls'. Cannot insert duplicate key in object '%.*ls'.). Another one getting…
1
vote
2 answers

Distribution agent can't connect to subscriber

I have two servers on different untrusted domains. Server A is the publisher and is running SQL Server 2008 R2. Server B is the subscriber and is running SQL 2008 R2 Express. Since the servers are on separate domains without a trust relationship,…
1
vote
0 answers

Data mismatch in Transactional replication with updatable subscription

Replication champs, I have a Transactional replication with updatable subscription setup having 1 publisher and 3 subscribers. All the servers are SQL 2008 and have conflict resolution policy set as subscriber wins. Of late, I have been observing…
1
vote
1 answer

SQL Server replication and application queries/updates conflicts resulting in deadlocks

We recently upgraded to sql server 2012. We have xxx-D-011 as OLTP server and yyy-D-011 as distributor server. The log is showing deadlocks every day between application queries/updates and replication jobs. A fragment of the log about the deadlock…
Daisy
  • 167
  • 1
  • 2
  • 11
1
vote
1 answer

Replication TempDB size

I currently have replication setup across 2 MS SQL Servers (both running 2008 r2). On the subscriber, my tempdb is filling to a ridiculous rate quickly, circa 28gb within an hour. I understand that tempdb needs to be used in order to store…
LaLa
  • 301
  • 2
  • 17
1
vote
1 answer

Best way to drop/create a replicated table

I have SQL Server Replication set up to replicate several tables for an accounting application. It's using transaction replication with an initial snapshot. There around about 100 subscribers. I am trying to figure out the best way to update…
user1538717