SELECT subsystem,
REPLACE(command, '-Continuous', '')
FROM msdb.dbo.sysjobsteps
WHERE job_id IN ( SELECT job_id
FROM msdb.dbo.sysjobs
WHERE name LIKE 'yourreplnamehere%'
) --or whatever the job is called
AND
subsystem <> 'TSQL'
AND
subsystem <> 'snapshot'
That gives you the commands needed. We’ve removed the -Continuous
for simplicity. (otherwise it would continue to run, and you’d need 3 windows)
Login to the server as SQLService. Bring up a command window.
cd "\Program Files\Microsoft SQL Server\90\com\" (or wherever replication is installed; this was an old box)
logread.exe
distrib.exe (repeat for
each server as necessary)