Replication has been working fine for months. Publisher, remote distributor and three subscribers. All of a sudden the distribution database became corrupted and no DBCC fixing or restoring from backups get get it back. So we installed from fresh.
We had replication working this morning and we were trying to concentrate on why the log wouldn't truncate. Seems the LSNs that had been recorded as distributed and not distributed would not update, so the truncation was always waiting on replication. So a few backups and truncates performed manually etc. and we come round to recreating publications. We've used all the same logins/credentials as before but all of sudden they just stopped working....
Date 15/09/2011 17:27:40
Log Job History (VSAW01-MyDB-1)
Step ID 2
Server HVAW10
Job Name VSAW01-MyDB-1
Step Name Run agent.
Duration 00:00:00
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
2011-09-15 16:27:40.450 Copyright (c) 2008 Microsoft Corporation
2011-09-15 16:27:40.450 Microsoft SQL Server Replication Agent: logread
2011-09-15 16:27:40.450
2011-09-15 16:27:40.450 The timestamps prepended to the output lines are expressed in terms of UTC time.
2011-09-15 16:27:40.450 User-specified agent parameter values:
-Publisher VSAW01
-PublisherDB MyDB
-Distributor HVAW10
-DistributorSecurityMode 1
-Continuous
-XJOBID 0x34C25A24E09FFD4CA127D01BF04C22B7
-XJOBNAME VSAW01-MyDB-1
-XSTEPID 2
-XSUBSYSTEM LogReader
-XSERVER VSAW01
-XCMDLINE 0
-XCancelEventHandle 0000000000000184
-XParentProcessHandle 0000000000000718
2011-09-15 16:27:40.497 Status: 0, code: 20015, text: 'The remote server "VSAW01" does not exist, or has not been designated as a valid Publisher, or you may not have permission to see available Publishers.'.
2011-09-15 16:27:40.497 The remote server "VSAW01" does not exist, or has not been designated as a valid Publisher, or you may not have permission to see available Publishers.
I don't want to fudge anything using sa, admins or sql server agent - why would it just stop working!?!? Driving me crazy.