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

Why am I getting the error "Cannot drop the database 'test' because it is being used for replication. Error: 3724"?

I deleted all the publications and subscriptions related to the database 'test'. All I have now are the publications and subscriptions related to other databases in the server. Still, It says "Cannot drop the database 'test' because it is being used…
manikanta nvsr
  • 487
  • 5
  • 20
2
votes
1 answer

Problems with Entity Framework Model when Transactional Replication active

I have a situation where I use SQL server transactional replication from my main database to my failover database. I have a main site and my fail over website is using my failover database. Both websites (use entity framework) are identical (so are…
2
votes
0 answers

SQL Server replication: TCP Provider: The semaphore timeout period has expired

I'm getting following error from SQL Server 2014 Push Transactional Replication Distribution Agent: Replication Distribution Subsystem: agent 'agent-name' scheduled for retry. TCP Provider: The semaphore timeout period has expired. This it…
2
votes
1 answer

DDL trigger to remove the article from the replication when it is altered

Using SQL Server 2008 for Transnational replication. Some times my team folks altering the table during development before removing the table from subscription in the replication. So it leads to replication failure in the environment. To avoid…
2
votes
1 answer

Replicate SQL Server CLR Function

Is it possible to replicate a CLR Function using Transactional (or Merge) Replication?
Adam
  • 1,984
  • 2
  • 16
  • 19
2
votes
1 answer

The process could not connect to Subscriber 'xxxxxx'

i have configured transnational push replication from SQL Server 2014 to Azure SQL Database publisher DB is also configured for mirroring. i get The process could not connect to Subscriber 'xxxxxx' when i see in replication monitor in tab…
2
votes
0 answers

Order of replicated commands from Publisher to Subscriber in Transactional replication sql server 2012

In Transactional replication the order of the commands execution in Subscriber is not same as it is in Publisher. I have a table Which have foreign key reference to its own table column. Alter Table [dbo].[test1] With Check Add CONSTRAINT…
2
votes
1 answer

Transactional Replication does not replicate SET QUOTED_IDENTIFIER

I have set up a one-to-one push trasactional replication with all articles copy properties set to TRUE. That's because I will need to back up the subscriber at some point with new data and restore as the primary database. The setup is all fine…
amindomeniko
  • 417
  • 6
  • 23
2
votes
0 answers

Real Time data replication in SQL Server

We are facing a technical challenge for the below scenario. Any solution with any technology are welcome. Our client has a legacy SQL Server replication system in place with one ERP source system with huge volume of data (daily transaction 3MN) and…
2
votes
1 answer

New table not showing up in publication's article list in SQL Server 2008

I'm very new to SQL Server. I just had someone transfer my entire database from Access to SQL Server and I'm trying to get up to speed. This is a merge replicated database. I added a new table "EmailList" to the database "CRM", then went to the…
dkimbrell
  • 67
  • 1
  • 8
2
votes
2 answers

Can a Sql server AlwaysOn group be a transactional replication subscriber?

If I have a Sql server AlwaysOn Availability Group, can I do a transactional push replication to it?
2
votes
2 answers

How can I remove all transactional publications from a Microsoft Sql Server database?

My database has a lot of subscribers to a lot of tables using Sql Server replication. When I try to delete a table or delete a column on my database that takes part in a subscription on a published database the database migration fails. Those…
regisbsb
  • 3,664
  • 2
  • 35
  • 41
2
votes
2 answers

SQL Server Transaction Replication For Indexed Views

I am doing transaction replication for indexed views. I have other replicating schemabound views that reference the indexed views using the NOEXPAND hint. Even though I call sp_addarticle for the NOEXPANDing views after calling sp_addarticle for the…
2
votes
0 answers

Large number of commands in the distribution database waiting to be applied to subscriber

I am using transitional publication with updatable subscribers SQL replication. I updated the database schema with new tables, views, and indexes. Since the update, 2 days ago, there is still a high number of commands waiting to be applied to the…
Lenci
  • 122
  • 10
2
votes
1 answer

SQL Server 2005 transactional replication performance

Does anybody know how transactional replication have impact to performance of publisher database? I want to use a subscriber as a base for generate on-line reports and statistics (use transactional replication for copy data), but I don't know how it…
1 2
3
19 20