SQL Snapshot replication fails: Named Pipes Provider: Could not open a connection to SQL Server 
Posted on 2013-11-20
We are trying to set up snapshot replication for a database in our main site to the same database in multiple remote sites across a WAN link. No firewalls are in the mix between SQL servers just distance.
When we run a snapshot replication manually it works but when it tries to run against a schedule we get the following error and are unsure how to get this working according to a schedule.
Error: 14151, Severity: 18, State: 1.
Replication-Replication Distribution Subsystem: agent PUBLISHERSERVERNAME-DATABASENAME-OEG System Replicatio-SUBSCRIBERSERVERNAME-13 failed. Named Pipes Provider: Could not open a connection to SQL Server .