The subscription(s) have been marked inactive and must be reinitialized. NoSync subscriptions will need to be dropped and recreated. (Source: MSSQLServer, Error number: 21074),REPLICATION

Distribution Agent job failed with below erro message and the below workaround fixed the issue in my environment Error messages: The subscription(s) have been marked inactive and must be reinitialized. NoSync subscriptions will need to be dropped and recreated. (Source: MSSQLServer, Error number: 21074)
USE Distribution
GO
SELECT STATUS,* FROM [dbo].[MSsubscriptions]
WHERE PUBLISHER_DB='PublisherDBNameHere'
use distribution
go
update MSSubscriptions 
set [status] = 2
WHERE PUBLISHER_DB='PublisherDBNameHere'
And to check thestatus after above command
use distribution
go
exec sp_browsereplcmds

Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Transparent Data Encryption(TDE) with Master Key and Certificate in SQL Server