Questions tagged [transactional-replication]

The automated distribution of transactional changes from a publishing database to one or more subscriber databases.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Transactional Replication Errors - Missing and Duplicate Data at Subscriber

We recently experienced errors with SQL Server Transactional Replication on a client's system. Replication is running from a SQL 2017 server to an Azure DB. Initially some replicated update commands ...
0 votes
1 answer
15 views

message 'The Distributor has not been installed correctly'

I get the message The Distributor has not been installed correctly Could not enable database for publishing when trying to execute sp_replicationdboption. The publisher (which is on separate server ...
0 votes
2 answers
58 views

SQL - Transactional Replication between existing databases

I want to reconfigure a Dynamics AX 2012 SQL Server to improve performance of an existing architecture where one SQL server is used for both transactions and reports. This reduces SQL performance ...
-1 votes
1 answer
26 views

Peer to Peer Replication in MS SQL Server [closed]

Is it good practice to use Peer to Peer Replication in MS SQL 2022 (Enterprise Edition) within Windows 2019 Server (three servers)? I want to create three replicas of my client's database and to use ...
0 votes
1 answer
76 views

logical replication initial phase

I am about doing replication for 16 millions record. Just want to ask about the initial phase of logical replication : Do I need to copy the initial table from publisher to subscriber first ? Or is ...
  • 41
0 votes
1 answer
48 views

SQL server replication conflicts

Once per week, a snapshot publication is done from a database "myDB" in PROD to "myDB" in PREPROD. Now in PREPROD we set up a transactional replication between "myDB" to ...
  • 145
2 votes
1 answer
40 views

Load of Transactional Replication at the Publisher

I would like to enable replication on my SQL Server , as per the Document , the load on Server as a Remote Distributor is less(i.e. 8-10% for insert/update in publisher) when compared with load on ...
0 votes
0 answers
27 views

Has anyone implemented TDE on two node AlwaysOn Cluster with Replication?

Looking for instructions to implement TDE on AlwaysOn with Replication. Current set up is Failover Cluster with Replication. Any gotchas to add TDE and AlwaysOn combination with Replication?
  • 327
1 vote
1 answer
30 views

Drop Subscriber at SQL Transactional replication

We have SQL Transactional pull replication: Publisher and Distributor are at the same server - ServerA. It publicates Publication1. Pull Subscribers to Publication1 are - ServerB, ServerC and ...
  • 11
1 vote
0 answers
39 views

Peer to Peer replication ID number

I'm familiar with P2P replication conflicts which normally show along the lines of conflict detected between peer 1 (incoming) and peer 2 (on disk). The issue I'm seeing is that the conflicts are ...
  • 11
0 votes
0 answers
28 views

Report (log) of each transaction on SQL Server Replication?

I've configured a transactional type of Replication between two SQL Servers. Since it's a project that it's still under review on my side I have only selected a couple of articles for the replication. ...
0 votes
1 answer
59 views

Replication jobs are not getting created after failover

I added distribution database to the alwaysOn group of dist1 and dist2 server. I setup replication for the database which are part of AAG and act as a publisher( node 1 and node2) and subscriber ...
  • 95
1 vote
1 answer
136 views

SQL Server replication msRepl_commands msRepls_transactions tables growing

I'm not getting any clue how to safely clean up the above tables. Last Friday, these tables had 22m and 6m records, respectively. Over the weekend, the number of rows has been reduced to 10m and 2.5m. ...
0 votes
0 answers
51 views

MSreplication_subscriptions updated tens of thousands of times per sync

I have a server that is a subscriber to several transactional replications. When looking into Activity Monitor in SSMS on the subscriber, I frequently see entries like this in Recent Expensive Queries:...
  • 125
1 vote
1 answer
163 views

How to modify the Replication Subscription Job/script to make it point an IP Address and a Port number?

I have an SQL Server 2012 server set up replicating one Database. It is behind a firewall. I have poked a hole in the firewall so I can access the server on Port 1433. I am using an IP Address and a ...
  • 73
1 vote
1 answer
44 views

Transactional Replication Architecture - One Article - Multiple Subscribers

Q: Is less expensive/more efficient for a Distributor server to use 1 publication to 2 subscribers or to use 2 publications with the same articles going to a single subscriber each? Details: We have ...
1 vote
0 answers
34 views

SQL Server Replication - One-to-Many in Same DB

I'm setting up some canary tables to more effectively monitor replication latency between on-prem and Azure. I've set it up using one source table that gets updated with a timestamp every few seconds, ...
  • 434
1 vote
1 answer
129 views

Can you backup a replicated database?

I would like to backup a publication SQL Server database that is being replicated with transactional replication. Would it cause any issues (with replication or any other issue) if I took a backup of ...
  • 253
0 votes
1 answer
214 views

Deleting old snapshots SQL

This may be a silly or dumb question but... We just changed the snapshot path and I was wondering if the cleanup job also clears up the old snapshots from the previous folder path or is it something ...
0 votes
0 answers
48 views

Why can I not manually run more than one snapshot agent at a time

My organization has a SQL Server 2016 instance with multiple databases, and multiple publications/subscriptions for each database, in a transactional replication set-up. Occasionally, we need to ...
  • 1
0 votes
0 answers
81 views

Error when replicating to Azure SQL Database

I've configured transactional replication between my on-prem SQL 2017 instance and an Azure SQL Database. The publisher, distributor, subscriber have all been set up. The snapshot agent has generated ...
1 vote
1 answer
321 views

Is there anyway in sql server transactional replication to not drop the target tables?

I have transactional replication setup between Server1 database and Server2 database on few tables. Now the problem is when I start the replication for the first time, it drops the table on target ...
0 votes
1 answer
51 views

Consolidating data from Subscriber database at Publisher

We have some tables published from one SQL server and another server subscribed to it. However we just realised on two tables data was added at the subscriber end that doesn't exist at the publisher. ...
  • 101
1 vote
1 answer
176 views

Calling triggers on replicated table when reinitalising from snapshot

I noticed my triggers weren't being fired after a subscriber was reinitialised. Is there a configuration to allow this functionality. Currently my setting for 'Action if name is in use' is 'Delete ...
0 votes
1 answer
43 views

Performing operation on transactional insert

Using MS SQL Server to replicate data between 2 servers for security purposes. Is it possible to perform an operation on the data sent from the publisher database before it is inserted into the ...
1 vote
1 answer
203 views

MS-SQL transactional replication - How to figure out how much data is being pushed per day in replicated databases

We use MS SQL Server transactional replication in our environment. I would like to know if there is a way or script to figure out how much data is being pushed per day to replicated databases? How to ...
  • 13
0 votes
1 answer
78 views

Sql server transactional replication latency

I'm analyzing the distribution database to see if there any latency in the replication between publisher and subscriber The architecture is one publisher, 1 distrubution db (on publisher server) and ...
  • 101
2 votes
2 answers
435 views

How do I resolve lock issue when replicating a table with over 16Billion records

I have two SQL Server databases that I am trying to replicate. I am able to replicate small tables without any issues. However I have a table with over 16 Billion rows that is quite problematic. I am ...
  • 31
0 votes
1 answer
157 views

Is there a way to setup one Alert for all Replication errors?

I have a SQL Server 2016 (Standard) instance, with DatabaseA, who is the Publisher in a Transactional Replication (push subscription) topology. A second SQL Server 2016 (Standard) instance, with ...
  • 26.7k
1 vote
0 answers
132 views

Login Failed while settting up transactional replication on a single computer

I'm trying to learn how to implement transactional replication on SQL Server by testing it out on my PC. Is it possible to set up transactional replication on a single PC, using 2 SQL Server instances,...
  • 11
0 votes
2 answers
108 views

Solution for syncing a database between two server and secondary can be used for all DML operation

I need a solution to synchronize a database (SQL Server 2016 Enterprise) between two servers, and I would be able to connect my secondary application to the secondary database which is getting ...
  • 357
0 votes
1 answer
363 views

MSSQL transaction replication - How to resync the data?

I have 1 transaction replication (peer to peer topology). After I setup, I found that the data on 2 table was difference. The first peer table [VPMYN204].[AdventureWorks2019].[Person].[AddressType] ...
  • 143
0 votes
0 answers
168 views

Delete data from big replicated table

I have a table with more than million rows. I need to copy data to temporary table, make changes to table structure and copy back all data. This table is on transactional replication. And I wanted to ...
2 votes
0 answers
264 views

SQL Server replication max server name length

Question Does SQL Server have a max server name limitation for SQL Server Replication with publishers or subscribers? Background: My coworker is worried about going above 15 characters for a server ...
0 votes
1 answer
95 views

One-directional Transactional Replication is causing one table's Clustered Index to be copied over as a Nonclustered Index in the subscriber database?

This seems really odd to me, as I've used SQL Server's replication feature for a while now and have never seen this occur before. I'm using One-Directional Transactional Replication and I have ServerA ...
  • 26.7k
0 votes
0 answers
221 views

How to avoid Timeout Error while turning on DB Replication

I recently tried to replicate a database with only one table in it using transactional replication, using GUI of SQL server management studio. But, as soon, the publication is set up, I get this error....
  • 165
1 vote
1 answer
300 views

One-directional database replication without delete on target database?

I have two databases: A small one where data is permanently added and a big one where the data is copied from the small one and is supposed to be stored long term. The small database deletes old data ...
0 votes
1 answer
33 views

transactional replication-snapshot agent failure ... can anyone help me out

configured transactional replication ..source acting as publisher and distributor,target server acting as subscriber.. but I got error for snapshot agent at 93 % saying that in below screenshot
  • 1
0 votes
1 answer
190 views

Transactional Replication between SQL Server 2017(Publisher+Distributor) and SQL Server 2019(Subscriber) [closed]

So here's the replication scenario that we need to set up. At organization A, We have SQL Server 2017 which is both the publisher and a distributor. At organization B, on a remote server, we have a ...
3 votes
2 answers
581 views

Pre- and Post- Snapshot Replication Scripts Not Executing and No Errors

I have a Snapshot Replication Publication setup on Server 1. Server 2 subscribes to the publication on Server 1. Data is replicating successfully. The Distributor Agent and Agent job for the ...
  • 26.7k
8 votes
1 answer
746 views

Changing collation of SQL Database in Production environment to minimize downtime

We have a scenario in which we want to change the collation of our production database (including columns) from SQL_Scandinavian_Pref_CP850_CI_AS to Finnish_Swedish_CI_AS. We have developed scripts to ...
0 votes
1 answer
159 views

Replication of only updates and inserts

I have two sql servers, in the first I want to keep the data from the last three months and in the second I want to keep all the data with the purpose of getting historical reports. I know how to do a ...
  • 7
0 votes
1 answer
128 views

Transactional replication upgrade from SQL Server 2017

We would like to inplace upgrade of transactional replication topology from SQL Server 2017 to SQL2019 with minimal downtime. The following is the setup. All the all current instances are on SQL ...
  • 73
0 votes
1 answer
364 views

sql transactional replication - slow renitialization / slow bulk insert

i recently set up sql transnational replication and i have some performance issue when i'm initializing/re-initializing it from snapshot. The biggest table have is about 8gb as snapshot file network ...
  • 101
0 votes
1 answer
124 views

SQL Server 2016 -number of SQL agent replication jobs(transaction log repl)

So I have a SQL server 2016 on a Windows Server 2012 instance. We have 140 databases(small to med). So the SQL instance was setup for self replication and in the process we have 140 SQL agent ...
2 votes
1 answer
594 views

Replication error masked by sp_MSdetect_nonlogged_shutdown returning 'String or binary data would be truncated'

One of our replication jobs is failing on step 3, which runs sp_MSdetect_nonlogged_shutdown, returns a 'String or binary data would be truncated'. Which of course led us down the path of trying to ...
1 vote
1 answer
5k views

Why are my postgres logical replication workers crashing after syncing a certain amount of data?

I am trying to setup a logical replication between two postgresql 12 DBs run in Docker containers on AWS ECS. I gave the task 2 vCPU and 6 GB of ram so quite luxurious for a DB with ~1e7 rows in two ...
  • 111
0 votes
0 answers
52 views

SQL Replication Subscriber with AlwaysON setup

We have 2 AlwaysON cluster and we want that to set up as a SQL Replication server which is the Always-on Cluster 1 is the Publisher and Always-on Cluster 2 is the SUBSCRIBER, my question is it ...
0 votes
0 answers
248 views

Why am I unable to skip a transaction in SQL Server 2017 transactional replication using the sp_setsubscriptionxactseqno stored procedure?

I have a transaction number of a transaction that is throwing the following error: Command attempted: if @@trancount > 0 rollback tran (Transaction sequence number: 0x00036322000B2628000100000000, ...
0 votes
1 answer
3k views

Replications fails with a vague message: "The last step to run was step 3: Detect nonlogged agent shutdown"

In Transactional Replication of SQL Server, Synchronization job starts well and proceeds a while. However, in middle of the work it shows this error: The job failed. The Job was invoked by User WIN-...
  • 151

1
2 3 4 5
10