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
4
votes
3 answers

transactional replication using script

I am able to configure transactional replication using SSMS and it works properly. But i want to configure it using script so that i use it from my c#/vb application. Is there any way to do that?
4
votes
1 answer

Transactional replication with no primary key (unique index)

I've just come across something disturbing, I was trying to implement transactional replication from a database whose design is not under our control . This replication was in order to perform reporting without taxing the system too much. Upon…
PeteT
  • 18,754
  • 26
  • 95
  • 132
4
votes
2 answers

What's the solution for bidirectional Replication type on vertical filtered table(some of columns) in SQL Server 2008

Assume we have a table in two database instance like following: CREATE TABLE StudentList ( StudentId int NOT NULL PRIMARY KEY, StudentName nvarchar(255) NOT NULL, StudentGrade int ) We want to create a bidirectional replication…
3
votes
1 answer

memory mapped file write failed in SQL Server Replication

I am getting the error "memory mapped file write failed" while trying to run Snap Shot Agent in Transactional Replication. Snap shot works fine if the table is having only a few hundreds of rows. And fails if the table contains few thousands of…
3
votes
2 answers

The locale identifier (LCID) 8192 is not supported by SQL Server

I am trying to make transactional replication and getting the exception on publications while viewing the snapshot agent status: The locale identifier (LCID) 8192 is not supported by SQL Server What does it mean? Solution?
Nauman
  • 218
  • 1
  • 3
  • 11
3
votes
0 answers

MS SQL Server 2017 - Error following official tutorial - creating new publication while setting up transactional replication

I am trying to set up replication using SQL Server 2017 Developer edition. The publisher, distributor, and subscriber are all local. I have been (faithfully) following the tutorial here:…
Inversus
  • 3,125
  • 4
  • 32
  • 37
3
votes
0 answers

Better Replication to move columns encrypted using SQL Always encryption

I have currently using Transaction replication in my production database and replicating the same database for internal purpose. Due to GDPR compliance, we are going to encrypt our database customer information columns using Always Encryption. I…
3
votes
6 answers

SQL Server Replication Local Subscription Properties returns "Cannot apply value ‘null’ to property ServerInstance: Value cannot be null."

I am replicating a SQL 2008 R2 database to a SQL 2016 database. When I connect to the SQL 2016 database using SSMS, and in Object Explorer select Replication->Local Subscription->MySubscription then right click and select Properties I get the…
3
votes
2 answers

Cannot drop the table because it is being used for replication

I am not able to modify the structure of a table in a database. The database is used for replication. I am getting This error
3
votes
1 answer

SQL Change tracking SYS_CHANGE_COLUMNS

We are running SQL 2008 R2 and have started exploring change tracking as our method for identifying changes to export to our data warehouse. We are only interested in specific columns. We are identifying the changes on a replicated copy of the…
3
votes
1 answer

Replicate a filtered subset of data: Merge or Transactional replication?

First of all thanks for reading. I need to replicate a subset of data that is based on a join filter; filter based on a join with an other table (Microsoft:"Using join filters, you can extend a row filter from one published table to another."). This…
3
votes
1 answer

Merge Replication not receiving updates via Transaction Replication when republishing

I'm trying to migrate from server Z, which replicates out to a dozen subscribers in two data center, to servers A & B, one in each data center. In order to survive outages between data centers we were looking at doing Merge Replication between A &…
3
votes
3 answers

Consolidate data from many different databases into one with minimum latency

I have 12 databases totaling roughly 1.0TB, each on a different physical server running SQL 2005 Enterprise - all with the same exact schema. I need to offload this data into a separate single database so that we can use for other purposes…
3
votes
4 answers

"Uninitialized subscription" error in replication monitor

I'm using SQL Server 2012 and trying to implement transactional replication. Im using the system stored procedures to create the publications and subscriptions. I was successful in creating these things, but when i check the replication monitor, it…
Harsha
  • 1,161
  • 4
  • 18
  • 38
2
votes
1 answer

Why are read-only nodes called read-only in the case of data store replication?

I was going through the article, https://learn.microsoft.com/en-us/azure/architecture/patterns/cqrs which says, "If separate read and write databases are used, they must be kept in sync". One obvious benefit I can understand from having separate…
1
2
3
19 20