Hi,
We have implemented transaction replication that is working fine.
One publisher with 3 publications and one subscriber.
Today we added another publication on same publisher & added another server as subscriber. Something went wrong with configuration & we did not succeed. In fact log reader agent did not start with error "the process could not execute sp_replcmds".
We removed subscription & publication and repeated the process again but in vain.
I used following scripts to remove subscription & publication.
-- This batch is executed at the Publisher to remove -- a pull or push subscription to a transactional publication.DECLARE @publication AS sysname; DECLARE @subscriber AS sysname; SET @publication = N'AdvWorksProductTran';SET @subscriber = $(SubServer); USE [AdventureWorks2012] EXEC sp_dropsubscription @publication = @publication, @article = N'all', @subscriber = @subscriber; GO
--EXEC sp_removedbreplication 'AdventureWorks2012'
DECLARE @publicationDB AS sysname; DECLARE @publication AS sysname; SET @publicationDB = N'AdventureWorks';SET @publication = N'AdvWorksProductTran';-- Remove a transactional publication.USE [AdventureWorks2012] EXEC sp_droppublication @publication = @publication; -- Remove replication objects from the database.USE [master] EXEC sp_replicationdboption @dbname = @publicationDB, @optname = N'publish', @value = N'false'; GO
Still no luck. When I launch replication monitor , it shows names of those publications with
red marked. Distribution database is also there. Some agent jobs are still there for this publication.
Any help will be highly appreciated.
Thanks.