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

Gap between initializing database and setup transactional replication?

I will need to setup transactional replication for a big database. I use backup/restore to initialize the database because it's too big to use snapshot over slow network. So the following steps are used Backup the database Copy the the backup…
0
votes
1 answer

Synchronizing in SQL Replication works when manually syncing, but not automatically

I'm using SQL Server 2005 to create a replication copy of the main databases, so that the reports can point to the replication copy instead of locking out our main databases. I have set up the 3 databases as publications and then 3 subscribers…
0
votes
1 answer

How to schedule transaction replication in SQL Server?

I wanted to schedule the transaction replication. How do I do it? Currently I have set up a transaction replication which runs continuously and synchronizes the changes with immediate effect. I need to configure a replication which will gather logs…
vignesh
  • 1,414
  • 5
  • 19
  • 38
0
votes
1 answer

Adding to the schema of a subscribing database

Transactional Replication on SQL Server 2005 Enterprise x64 (SP3). I need to add check constraints to a databases that is the target for a replication, but I cannot add the check constraints to the publishing database. The Problem is that the…
NTDLS
  • 4,757
  • 4
  • 44
  • 70
0
votes
1 answer

Different versions of MS SQL Server between remote ditribution Database and Publisher

I need to set up a mechanism for transactional replication with "n" publishers and a subcriber. In this way I thought of putting a single database ditribution. I would like to know if there are problems between versions of ditribution and…
0
votes
1 answer

How to change CommitBatchSize and CommitBatchThreshold

We have a transactional replication set and we want to change CommitBatchThreshold but couldn't find a proper documentation on how to change it. Would adding '-CommitBatchThreshold 10' to the Steps would work in Agent Properties? Wanna be sure…
Bilsay
  • 185
  • 2
  • 11
0
votes
1 answer

Copying Large Amounts of Data to Replicated Database

I have a local SQL Server database that I copy large amounts of data from and into a remote SQL Server database. Local version is 2008 and remote version is 2012. The remote DB has transactional replication set-up to one local DB and another remote…
TechyGypo
  • 824
  • 1
  • 11
  • 27
0
votes
1 answer

Transaction Replication Msg 14013, Level 16, State 1, Procedure sp_MSrepl_addlogreader_agent, Line 38

I am trying to set up transaction replication on a database. I use the following script to do so: USE [Archive_MRPa_801] GO EXEC sp_replicationdboption @dbname = N'Archive_MRPa_801', @optname = N'publish', @value = N'true' GO USE…
0
votes
1 answer

Where can I see the @published_in_tran_pub property?

We have a merge replication that sources on a subscription of a transactional replication. According to this source (Multiple SQL replication types) I need to set the @published_in_tran_pub to true. So far so good, however now I would like to check…
0
votes
1 answer

SQL Server Replication Overrides Data at Subscriber

We need to replicate all the data from ProjectA and ProjectB databases to the Central database (All being hosted by different SQL Server instances). I have adopted the Central subscriber topology by creating transnational publications at PojectA…
0
votes
1 answer

Is a Transactional Replication Snapshot processed as a 'bulk insert'

I have a Merge replication that sources on a subscription from a Transactional Replication. I know that the triggers regarding the Merge replication are not fired by 'bulk inserts': Microsoft: When data is loaded into tables using the bcp Utility…
0
votes
1 answer

How do I add a subscriber to a SQL Server Replication Publisher

In entering the credentials for the remote server, I get an error asking for the actual server name. What I usually provide is [IP Address] as the server name but I get an error asking for the actual server name so I provide [IP…
0
votes
1 answer

SQL replication, merge publication, cannot connect to subscriber

i have some difficulty in setting up SQL replication over the internet. I am using a static public IP thru my firewall and port forward to the distribution server. basically everything is fine, i was able to register and connect the remote…
0
votes
2 answers

SQL Server transactional replication: do we need to drop-and-recreate subscription if we drop articles from the publication

I'm using SQL server 2012 enterprise edition. I've set up a SQL transaction replication between two servers. And now I want to drop some articles from the publication. I'm not sure whether there are some special considerations/actions after the…
dingx
  • 1,621
  • 3
  • 20
  • 38
0
votes
2 answers

Trigger replication update manually and not automatically in SQL Server 2012

I have set up an Transactional Replication in SQL Server 2012 and it works fine (update after some seconds) But is it possible to edit my replication to trigger only if i "push a button for" and not automatically?