Property | Value | Description |
|---|
allow_anonymous | true | Anonymous subscriptions can be created for the given publication, and immediate_sync must also be true. Cannot be changed for peer-to-peer publications. |
| false | Anonymous subscriptions cannot be created for the given publication. Cannot be changed for peer-to-peer publications. |
allow_initialize_from_backup | true | Subscribers can initialize a subscription to this publication from a backup rather than an initial snapshot. This property cannot be changed for non-Microsoft SQL Server publications. |
| false | Subscribers must use the initial snapshot. This property cannot be changed for non-SQL Server publications. |
allow_partition_switch | true | ALTER TABLE…SWITCH statements can be executed against the published database. For more information, see Replicating Partitioned Tables and Indexes. |
| false | ALTER TABLE…SWITCH statements cannot be executed against the published database. |
allow_pull | true | Pull subscriptions are allowed for the given publication. This property cannot be changed for non-SQL Server publications. |
| false | Pull subscriptions are not allowed for the given publication. This property cannot be changed for non-SQL Server publications. |
allow_push | true | Push subscriptions are allowed for the given publication. |
| false | Push subscriptions are not allowed for the given publication. |
allow_subscription_copy | true | Enables the ability to copy databases that subscribe to this publication. This property cannot be changed for non-SQL Server publications. |
| false | Disables the ability to copy databases that subscribe to this publication. This property cannot be changed for non-SQL Server publications. |
alt_snapshot_folder | | Location of the alternate folder for the snapshot. |
centralized_conflicts | true | Conflict records are stored at the Publisher. Can be changed only if there are no active subscriptions. This property cannot be changed for non-SQL Server publications. |
| false | Conflict records are stored at both the Publisher and at the Subscriber that caused the conflict. Can be changed only if there are no active subscriptions. This property cannot be changed for non-SQL Server publications. |
compress_snapshot | true | Snapshot in an alternate snapshot folder is compressed into the .cab file format. The snapshot in the default snapshot folder cannot be compressed. |
| false | Snapshot is not compressed, which is the default behavior for replication. |
conflict_policy | pub wins | Conflict resolution policy for updating Subscribers where the Publisher wins the conflict. This property can be changed only if there are no active subscriptions. Not supported for Oracle Publishers. |
| sub reinit | For updating Subscribers, if a conflict occurs the subscription must be reinitialized. This property can be changed only if there are no active subscriptions. Not supported for Oracle Publishers. |
| sub wins | Conflict resolution policy for updating Subscribers where the Subscriber wins the conflict. This property can be changed only if there are no active subscriptions. Not supported for Oracle Publishers. |
conflict_retention | | int that specifies the conflict retention period, in days. The default retention is 14 days. 0 means that no conflict cleanup is needed. Not supported for Oracle Publishers. |
description | | Optional entry describing the publication. |
enabled_for_het_sub | true | Enables the publication to support non-SQL Server Subscribers. enabled_for_het_sub cannot be changed when there are subscriptions to the publication. You may need to execute sp_changepublication (Transact-SQL) to comply with the following requirements before setting enabled_for_het_sub to true: Changing enabled_for_het_sub to true may change existing publication settings. For more information, see Non-SQL Server Subscribers. This property cannot be changed for non-SQL Server publications. |
| false | Publication does not support non-SQL Server Subscribers. This property cannot be changed for non-SQL Server publications. |
enabled_for_internet | true | Publication is enabled for the Internet, and File Transfer Protocol (FTP) can be used to transfer the snapshot files to a subscriber. The synchronization files for the publication are put into the following directory: C:\Program Files\Microsoft SQL Server\MSSQL\Repldata\ftp. ftp_address cannot be NULL. This property cannot be changed for non-SQL Server publications. |
| false | Publication is not enabled for the Internet. This property cannot be changed for non-SQL Server publications. |
enabled_for_p2p | true | The publication supports peer-to-peer replication. This property cannot be changed for non-SQL Server publications. To set enabled_for_p2p to true, the following restrictions apply: allow_anonymous must be false allow_dts must be false. allow_initialize_from_backup must be true allow_queued_tran must be false. allow_sync_tran must be false. enabled_for_het_sub must be false. independent_agent must be true. repl_freq must be continuous. replicate_ddl must be 1.
|
| false | The publication does not support peer-to-peer replication. This property cannot be changed for non-SQL Server publications. |
ftp_address | | FTP accessible location of the publication snapshot files. This property cannot be changed for non-SQL Server publications. |
ftp_login | | User name used to connect to the FTP service, and the value ANONYMOUS is allowed. This property cannot be changed for non-SQL Server publications. |
ftp_password | | Password for the user name used to connect to the FTP service. This property cannot be changed for non-SQL Server publications. |
ftp_port | | Port number of the FTP service for the Distributor. This property cannot be changed for non-SQL Server publications. |
ftp_subdirectory | | Specifies where the snapshot files are created if the publication supports propagating snapshots using FTP. This property cannot be changed for non-SQL Server publications. |
immediate_sync | true | Synchronization files for the publication are created or re-created each time the Snapshot Agent runs. Subscribers are able to receive the synchronization files immediately after the subscription if the Snapshot Agent has been completed once before the subscription. New subscriptions get the newest synchronization files generated by the most recent execution of the Snapshot Agent. independent_agent must also be true. |
| false | Synchronization files are created only if there are new subscriptions. Subscribers cannot receive the synchronization files after the subscription until the Snapshot Agent is started and completes. |
independent_agent | true | Publication has its own dedicated Distribution Agent. |
| false | Publication uses a shared Distribution Agent, and each publication/subscription database pair has a shared agent. |
p2p_continue_onconflict | true | The Distribution Agent continues to process changes when a conflict is detected. CautionWe recommend that you use the default value of FALSE. When this option is set to TRUE, the Distribution Agent tries to converge data in the topology by applying the conflicting row from the node that has the highest originator ID. This method does not guarantee convergence. You should make sure that the topology is consistent after a conflict is detected. For more information, see "Handling Conflicts" in Conflict Detection in Peer-to-Peer Replication. |
| false | The Distribution Agent stops processing changes when a conflict is detected. |
post_snapshot_script | | Specifies the location of a Transact-SQL script file that the Distribution Agent runs after all the other replicated object scripts and data have been applied during an initial synchronization. |
pre_snapshot_script | | Specifies the location of a Transact-SQL script file that the Distribution Agent runs before all the other replicated object scripts and data have been applied during an initial synchronization. |
publish_to_ActiveDirectory | true | This parameter has been deprecated and is only supported for the backward compatibility of scripts. You can no longer add publication information to the Microsoft Active Directory. |
| false | Removes the publication information from Active Directory. |
queue_type | sql | Use SQL Server to store transactions. This property can be changed only if there are no active subscriptions. NoteSupport for using Microsoft Message Queuing has been discontinued. Specifying a value of msmq for value results in an error. |
repl_freq | continuous | Publishes output of all log-based transactions. |
| snapshot | Publishes only scheduled synchronization events. |
replicate_ddl | 1 | Data definition language (DDL) statements executed at the publisher are replicated. This property cannot be changed for non-SQL Server publications. |
| 0 | DDL statements are not replicated. This property cannot be changed for non-SQL Server publications. Replication of schema changes cannot be disabled when using peer-to-peer replication. |
replicate_partition_switch | true | ALTER TABLE…SWITCH statements that are executed against the published database should be replicated to Subscribers. This option is valid only if allow_partition_switch is set to TRUE. For more information, see Replicating Partitioned Tables and Indexes. |
| false | ALTER TABLE…SWITCH statements should not be replicated to Subscribers. |
retention | | int representing the retention period, in hours, for subscription activity. If a subscription is not active within the retention period, it is removed. |
snapshot_in_defaultfolder | true | Snapshot files are stored in the default snapshot folder. If alt_snapshot_folderis also specified, snapshot files are stored in both the default and alternate locations. |
| false | Snapshot files are stored in the alternate location specified by alt_snapshot_folder. |
status | active | Publication data is available for Subscribers immediately when the publication is created. Not supported for Oracle Publishers. |
| inactive | Publication data are not available for Subscribers when the publication is created. Not supported for Oracle Publishers. |
sync_method | native | Uses native-mode bulk copy output of all tables when synchronizing subscriptions. |
| character | Uses character-mode bulk copy output of all tables when synchronizing subscriptions. |
| concurrent | Uses native-mode bulk-copy program output of all tables, but does not lock tables during the snapshot generation process. Not valid for snapshot replication. |
| concurrent_c | Uses character-mode bulk copy program output of all tables, but does not lock tables during the snapshot generation process. Not valid for snapshot replication. |
taskid | | This property has been deprecated and is no longer supported. |
NULL (default) | | Returns the list of supported values for property. |