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

SQL Server replication/redirection for heavy jobs

Need some sanity check. Imagine having 1 SQL Server instance, a beefy system (i.e 48GB of RAM and tons of storage). Obviously there comes a point where it gets hammered in a situation where there are lots of jobs running. These jobs/DB are part of…
0
votes
1 answer

Add additional subscription?

I already have a push transaction replication (SQL 2008) from A to B. Now I need to add an additional subscription C. I know the following steps should work, Remove the publication from A. Backup the database Copy the backup file to B and C Create…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
0
votes
1 answer

Was this subscription initialized?

Running SQL 2008... Where can I find in the SQL dB or how can I determine if a transactional subscription was initialized when it was created?? AHIA, LarryR...
larryr
  • 1,536
  • 3
  • 17
  • 27
0
votes
1 answer

Replicat Abended with ORA-02290: check constraint (TABLE_NAME.CHK_JSON) violated

We see the below in my Discard file - NOTE: I can see the record in my source db. CI Error ORA-02002: error while writing to audit trail ORA-22275: invalid LOB locator specified ORA-02290: check constraint (SCHEMA_NAME.CHK_JSON) violated (status =…
0
votes
1 answer

SQL Server Transactional Replication - Can propagation of schema changes and data changes be controlled?

In transaction replication, if schema changes happen first and then the data changes, will it happen the same way in subscriber as well? If no, is there a way to control the order?
sagar pant
  • 377
  • 1
  • 2
  • 12
0
votes
0 answers

Distribution Cleanup failure

The [Distribution Cleanup: Distribution] job, which removes replicated transactions from the distribution database, failed due to an error when executing the sp_MSdelete_publisherdb_trans procedure. I found that the error is related to accessing…
Anton Grig
  • 1,640
  • 7
  • 11
0
votes
1 answer

Transactional Replication on a table carrying incompatible data type

I am trying to implement a transactional replication in 2008. Both the publisher and subscriber are in 2008 version.So far so good. The publisher database is in 2005 compatibility mode. It has a table which has two columns with the data type 'date'…
0
votes
1 answer

Will adding column to replication db have influence on source db?

If I add column to a replication database, will this column also be added to source database? I'm using transactional replication. PS I don't want it to be added to source, I just want to make sure it won't make changes on original db :)
ilija veselica
  • 9,414
  • 39
  • 93
  • 147
0
votes
0 answers

The process could not execute 'sp_replcmds' on '********'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20011)

Yes, I know this issue is scattered all over the Internet, but none quite deal with my issue. Both Publisher and Subscriber are SQL Server 2017 on Windows Server 2016. The Log Reader fails with the sp_replcmds error immediately after the Publisher…
Steiner
  • 1
  • 3
0
votes
0 answers

MS SQL Server - initial data anonymization for replicated database

I have 2 SQL Server databases - publisher and subscriber. Since the subscriber is being used for statistics I have to provide anonymization for some records. My idea is to: Load data into the replica with Snapshot Replication (that action creates…
0
votes
2 answers

What is the best way to replicatedata from Oracle Goldengate Onpremise to AWS (SQL or NOSQL)?

What is the best way to replicate data from Oracle Goldengate On premise to AWS (SQL or NOSQL)?
0
votes
1 answer

SQL Server transactional replication cannot copy non-clustered index

As mentioned in the title, I have been trying to include the non-clustered index on my transactional replication. When I created the publication, I have checked the option for "copy nonclustered index" in the [Set properties for all table…
Mark
  • 2,041
  • 2
  • 18
  • 35
0
votes
1 answer

SQL Server Transactional Replication - Error number: 213 - Column name or number of supplied values does not match table definition

I have an issue with Transactional Replication which I am struggling to resolve. This is the error: Column name or number of supplied values does not match table definition. (Source: SQL Server, Error number: 213) The error is occurring on an…
0
votes
0 answers

Large table performance in SQL server

For one of our application, we have really large volume SQL table which has 100 million rows and we are using Azure SQL managed instance. On daily basis users will either insert new records or updates very old records. This is the core table where…
0
votes
1 answer

Transactional Replication from SQL Server 2008R2 to SQL Server 2017

I wanted to ask about Your experience related to set up a Transactional replication between SQL SERVER 2008R2 (publisher) and SQL SERVER 2017 (subscriber). I know that this is not supported by Microsoft according to "Transactional & Snapshot…