SQL Server 2005 Replication Debugging Suggestions

replicationsql serversql-server-2005

I have a replication setup it was up and running yesterday, now I can't connect to the distributor and I don't know why.

  • The publisher is on a Domain and talks to the subscriber (not on the domain) via VPN.
  • I can ping the publisher from the subscriber and vice-versa.
  • I can log in to MSSQL on the publisher from the subscriber.
  • The publisher is in an error state because no activity is being logged from the subscriber.
  • The subscriber can't connect to the distributor.
  • Tracer tokens report a time for the distributor but only pending for the subscriber.
  • Assuming db changes by a third person might be causing troubles, I deleted the subscription and the publication and recreated them.
  • I can confirm that yesterday using the same tables/user accounts/servers etc the replication was working and replicating data.

If you have any suggestions to try to narrow down where the problem is, they would be most appreciated.

Answers to questions:

  • I am using one way transactional replication
  • The distributor is on the same machine as the publisher.
  • Both the publisher and the subscriber are 2003 SP2

Seems to be working again

I still don't know why the original working setup stopped working. But when I re-subscribed I had the wrong credentials for one of the connections. By correcting that problem the replication is working once again.

Best Answer

Can you execute T-SQL both directions? You say that the subscriber can't connect to the distributer, but can the distributer see both? Is the distributer on your network or the remote network? I'm just wondering if things are batching up on the distributer, and the disconnect is between there and your subscriber, or if the disconnect is publisher -> distributer, especially if all three are on different servers.

Just somewhere to start.