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

Always On FailOver Events

The transaction log for database is full due to 'OLDEST_PAGE'

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"