共用方式為


PublicationAttributes Enumeration

Enumerates supported publication properties.

命名空間: Microsoft.SqlServer.Replication
組件: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

語法

'宣告
<FlagsAttribute> _
Public Enumeration PublicationAttributes
[FlagsAttribute] 
public enum PublicationAttributes
[FlagsAttribute] 
public enum class PublicationAttributes
/** @attribute FlagsAttribute() */ 
public enum PublicationAttributes
FlagsAttribute 
public enum PublicationAttributes

Members

Member name Description
AllowAnonymous Anonymous subscriptions can subscribe to the publication.
AllowDtsTransformation Transformable subscriptions are supported. This feature has been deprecated and required installation of SQL Server 2000 Data Transformation Services (DTS). For more information, see 轉換發行的資料.
AllowInitializationFromBackup Subscribers can initialize a subscription to the publication from a backup rather than the initial snapshot. Supported only for transactional or snapshot replication.
AllowPartitionRealignment Deletes are sent to the Subscriber when modification of the row on the Publisher causes it to change its partition and when the publication uses parameterized filters. Supported only for merge publications.
AllowPull Subscriptions where the synchronization agent runs at the Subscriber (pull subscriptions) are supported. Required to support SQL Server 2005 Compact Edition Subscribers.
AllowPush Subscriptions where the synchronization agent runs at the Distributor (push subscriptions) are supported.
AllowQueuedTransactions Queued updating subscriptions are supported for transactional publications. Supported only for transactional publications.
AllowSubscriberInitiatedSnapshot Subscribers can initiate the snapshot process to generate the filtered snapshot for their data partition when the merge publication has parameterized filters. Supported only for merge publications.
AllowSubscriptionCopy Databases that subscribe to the publication can be copied and attached to create new subscriptions. Attachable subscriptions have been deprecated.
AllowSynchronousTransactions Immediate updating subscriptions are supported for transactional publications. Supported only for transactional publications.
AllowSyncToAlternate Subscribers can synchronize subscriptions to the merge publication with servers other than the Publisher where the subscription originated. Supported only for merge publications. This feature is deprecated and will be removed in a future release. Not supported for SQL Server 2005 Compact Edition Subscribers.
AllowWebSynchronization Subscribers can synchronize subscriptions over the Internet using the HTTPS protocol. Supported only for merge publications. Only available with SQL Server 2005. Required to support SQL Server 2005 Compact Edition Subscribers. For more information, see 合併式複寫的 Web 同步處理.
AutomaticGenerateSyncProcedures The stored procedure used by updating subscriptions to synchronize with the transactional publication is automatically generated. Supported only for transactional publications.
CentralizedConflicts Conflict records are stored at the Publisher. Supported only for merge publications.
CompressSnapshot Snapshot files are compressed into the CAB format. Snapshot files that are larger than 2 gigabytes (GB) cannot be compressed. Not supported for SQL Server 2005 Compact Edition Subscribers.
DecentralizedConflicts Conflict records are stored at the Subscriber. Supported only for merge publications. Not supported for SQL Server 2005 Compact Edition Subscribers.
DynamicFilters Parameterized row filters are supported on a merge publication. Supported only for a merge publication.
EnabledForActiveDirectory  
EnabledForHeterogeneousSubscribers Non- SQL Server Subscribers are supported. Supported only for transactional and snapshot publications. Only available with SQL Server 2005 and later versions.
EnabledForPeerToPeer Peer-to-peer transactional replication is supported. Supported only for transactional publications. Only available with SQL Server 2005 and later versions.
ImmediateSync Synchronization files for the publication are recreated each time the Snapshot Agent runs. Subscribers are able to get the synchronization files immediately if the Snapshot Agent has completed before the subscription is created. New subscriptions get the newest synchronization files generated by the most recent execution of the Snapshot Agent. When setting ImmediateSync, IndependentAgent must also be set.
IndependentAgent Each subscription uses its own replication agent instance when synchronizing with the Publisher. Setting this option reduces latency and is the default for a transactional publication. Merge replication always uses independent agents.
InternetEnabled Publication can be synchronized over the Internet, and file transfer protocol (FTP) can be used to transfer the snapshot files to a Subscriber. For more information, see 透過網際網路實作複寫.
KeepPartitionChanges Partition change optimizations are used when precomputed partitions cannot be used. Do not specify KeepPartitionChanges when PartitionGroupsOption is True. For more information, see 使用預先計算的資料分割最佳化參數化篩選效能.
None Removes all options from Attributes.
SnapshotInDefaultFolder The snapshot files for the publication are maintained in the default folder. When SnapshotInDefaultFolder is not specified, you must specify an alternate location for the snapshot files using AltSnapshotFolder.

備註

The PublicationAttributes enumeration supports the FlagsAttribute option, which allows a bitwise combination of enumeration values.

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

Microsoft.SqlServer.Replication Namespace
Publication Class

其他資源

How to: Create a Publication (RMO Programming)