Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Distribution Agent Fails with Error 2812

$
0
0

I had an error free transactional replication running between MSSQL 2000 (pub) and MSSQL 2008 R2 (sub). Because schema changes were disabled, I needed to delete the subscription and publication to add a new column to one of the replicated tables. I recreated the publication and added the subscriber. The snapshot was recreated. Now when the distribution agent runs it fails with error 2812. The Distribution DB is on the 2008 R2 box and the subscribers are pull subscriptions.

I ran a trace on the subscriber and found that the replcmd that was failing is 'exec sp_MSins_z2t_Activity;2'. NOTE the ';2'.

I review the snapshot data and the replcmd script has CREATE PROCEDURE sp_MSins_z2t_Activity *without* ';2'. Hence the subscriber database as sp_MSins_z2t_Activity.

I deleted and recreated the pub/sub a couple of times with a *new* INS/DEL/UPD cmds and still get a ';2' when the distribution agent runs. I understand the use of the ';2', but it unnecessary.

So how can I fix this??

SteveB.


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>