We recommend using Visual Studio 2017

SnapshotGenerationAgent.PublisherLogin Property

Gets or sets the login name used when connecting to the Publisher using SQL Server Authentication.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

public string PublisherLogin { get; set; }

Property Value

Type: String
A String value that is the login name.



When possible, use Windows Authentication.

This is a required property if PublisherSecurityMode property is set to Standard.