I found that there is a missing of one line that need to be executed before starting execute sp_addlogreader_agent.We need to specify the use of the publication DB.So instead of following script as above:-- Enable transactional or snapshot replication on the publication database.EXEC sp_replicationdboption @dbname=@publicationDB, @optname=N'publish',@value = N'true';-- Execute sp_addlogreader_agent to create the agent job. EXEC sp_addlogreader_agent We need to change into the following:-- Enable
↧