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
8
votes
2 answers

Transactional Replication with LocalDB

I searched everywhere but couldn't find an answer. I know LocalDB cannot be a subscriber to merge replication. But what about transactional replication? I've tried both the SQL Server Management Studio and RMO programming to create a pull…
7
votes
2 answers

SQL Server 2005 Transactional Replication Fails to Publish Stored Procedure Containing an Index Create

I've experienced a bizarre problem with a SQL Server 2005 Transactional Publication. The issue is this: If the publication contains an article that is a stored procedure that contains a create index statement, then there is an error thrown when…
6
votes
1 answer

Architecture recommendation using SQL Server for real-time aggregation and denormalization

We have an enterprise LOB application for managing millions of bibliographic (lots of text) records using SQLServer (2008). The database is very normalized (a complete record might easily be made of up ten joined tables plus nested collections).…
6
votes
1 answer

Is it possible to monitor transactional replication using Transact SQL

I am trying to monitor continuous replication status using transact sql from c# application. From my c# application i successfully start the job by using this.. exec sp_startpushsubscription_agent @publication = 'myPublication', @subscriber =…
Hasib Tarafder
  • 5,773
  • 3
  • 30
  • 44
5
votes
1 answer

It is possible to alter SQL Server replication filter without delivering an entire publication snapshot?

I am constantly asked to change the filters on my companies SQL Server Transactional Publications which contain several hundred tables and roughly 400GBs of row data. Each time I am required to alter a filter, I have to completely re-snapshot the…
NTDLS
  • 4,757
  • 4
  • 44
  • 70
5
votes
2 answers

Exception when starting Snapshot Agent when setting up database replication

I am trying to set up replication between databases. I followed this tutorials: https://learn.microsoft.com/en-us/sql/relational-databases/replication/tutorial-preparing-the-server-for-replication?view=sql-server-ver15 and…
5
votes
0 answers

Database replication SQL Server 2012 to Bigrock server and Windows Server on AWS

I am developing windows application where I am trying to create SQL Server 2012 database replication to Bigrock server and Windows Server on AWS but failed to perform database replication. I publish database on SQL Server 2012 and trying to add…
5
votes
4 answers

Stop replicating large transaction in SQL Server

I have a question about trying to stop a large transaction at the publisher being distributed to the subscribers. Let's say someone accidentally updates every record in a table with 50 million records and then upon realising their mistake, sets all…
5
votes
0 answers

PostgreSQL Replications: Multiple Masters to a Single Slave

I have several PostgreSQL DBs in different geographical locations (local sites). Each local site DB have the same schema, but unique data. For example, Take a table with columns: Site_ID, Department_ID, Department_Name. Site_ID is unique for each…
5
votes
3 answers

T-SQL to find if a Database is Subscribed on the Subscriber in Transactional Replication

T-SQL to find if a Database is Subscribed on the Subscriber in Transactional Replication. I don't want to query Distribution for the details. The following doesn't work. SELECT is_subscribed FROM sys.databases SELECT DATABASEPROPERTYEX('database',…
Afroz
  • 1,017
  • 2
  • 12
  • 24
4
votes
1 answer

Are transactions logged to WAL if there is no change in PostgreSQL?

I'm trying to find out whether changes are reflected on the WAL (write ahead log) files if there is no change to a row. To test it, I create a replication slot in PostgreSQL to capture changes. Here are the steps I've taken. ALTER SYSTEM SET…
4
votes
2 answers

mysql master-master data replication consistency

As we know mysql do replication asynchronously. I heard that I need some extra plugins to do synchronous replication. So let us Consider the situation of asynchronous replication: The master writes events to its binary log but does not know whether…
4
votes
2 answers

wait for transactional replication in ADO.NET or TSQL

My web app uses ADO.NET against SQL Server 2008. Database writes happen against a primary (publisher) database, but reads are load balanced across the primary and a secondary (subscriber) database. We use SQL Server's built-in transactional…
solublefish
  • 1,681
  • 2
  • 18
  • 24
4
votes
1 answer

What data type is optimal for clustered index of a table published by using transactional replication?

We have an application which stores data in SQL server database. (Currently we support SQL Server 2005 and higher). Our DB has more than 400 tables. The structure of the database is not ideal. The biggest problem is that we have a lot of tables with…
Alex
  • 423
  • 4
  • 7
4
votes
1 answer

SQL Server Bi-Directional Transactional Replication - Is it a good use-case?

We're having a problem with scaling out with SQL server. This is largely because of a few reasons: 1) poorly designed data structures, 2) heavy lifting and business/processing logic is all done in T-SQL. This was verified by a Microsoft SQL guy…
1
2 3
19 20