This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The PublicationAttributes property specifies available functions for a Microsoft SQL Server replication publication.
Set value using these SQLDMO_PUBATTRIB_TYPE values.
Allows anonymous Subscriber-originated subscriptions against the referenced publication.
Allows known Subscriber-originated (pull) subscriptions against the referenced publication.
Allows the Publisher to force subscription to the publication.
Allows copying and attaching of the subscription database to other Subscribers.
Compresses snapshot files.
Forces immediate synchronization of the referenced publication.
Runs the agent as an independent agent.
Enables the referenced publication for distribution across the Internet.
Keeps the snapshot copy in the default folder.
The referenced publication has an unknown attribute setting.
A mask for valid attribute settings.
ThePublicationAttributes property is a bit-packed value that specifies one or more allowed functions. Combine values using the OR logical operator.
For a referenced, Subscriber-initiated subscription, PublicationAttributes is SQLDMOPubAttrib_Min until synchronization occurs and the Subscriber can determine the attributes.
To enable anonymous subscriptions, SQLDMOPubAttrib_AllowPull, SQLDMOPubAttrib_AllowAnonymous and SQLDMOPubAttrib_ImmediateSync must all be specified.
If the SQLDMOPubAttrib_InternetEnabled attribute is specified, the AltSnapshotFolder property must be specified. If the AltSnapshotFolder property is set to NULL or an empty string, SQLDMOPubAttrib_InternetEnabled is automatically turned off.
If an application sets PublicationAttributes with the MergePublicationor TransPublication object with a setting of SQLDMOPubAttrib_CompressSnapshot, SQLDMOPubAttrib_InternetEnabled, or SQLDMOPubAttrib_SnapshotInDefaultFolder after the initial snapshot has been created, a new snapshot must be generated and then reapplied to each subscription. Snapshots are applied when the next scheduled snapshot and distribution or merge agent run.