DistributionPublication.PubId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the publication ID.
public:
property int PubId { int get(); };
public int PubId { get; }
member this.PubId : int
Public ReadOnly Property PubId As Integer
Property Value
A String value.
Remarks
The <xref:Microsoft.SqlServer.Replication.DistributionPublication.PubID%2A> property cannot be changed for an existing publication.
The <xref:Microsoft.SqlServer.Replication.DistributionPublication.PubID%2A> property can only be retrieved by members of the sysadmin
fixed server role at the Distributor, by members of the db_owner
fixed database role on the distribution database, or by users in the publication access list (PAL).
The <xref:Microsoft.SqlServer.Replication.DistributionPublication.PubID%2A> property can only be set by members of the db_owner
fixed database role on the distribution database.