Поделиться через


Перечисление IdentityRangeManagementOption

Enumerates options for managing identity column range assignments in tables published using merge replication and transactional replication with updating Subscribers.

Пространство имен:  Microsoft.SqlServer.Replication
Сборка:  Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)

Синтаксис

'Декларация
Public Enumeration IdentityRangeManagementOption
'Применение
Dim instance As IdentityRangeManagementOption
public enum IdentityRangeManagementOption
public enum class IdentityRangeManagementOption
type IdentityRangeManagementOption
public enum IdentityRangeManagementOption

Элементы

Имя элемента Описание
None Identity columns are replicated to the Subscriber as the base data type.
Automatic Identity columns are marked as NOT FOR REPLICATION, and replication automatically assigns identity ranges.
Manual Identity columns are marked as NOT FOR REPLICATION, but replication does not assign identity ranges.

Замечания

Identity range management is supported for both merge and transactional replication with updating Subscribers.

You should use Automatic whenever possible.

Automatic identity range management behavior is set by specifying PublisherIdentityRangeSize, SubscriberIdentityRangeSize, and IdentityRangeThreshold.

Manual is only used for snapshot and transactional replication without updates at the Subscriber, peer-to-peer transactional replication, or if your application must control identity ranges programmatically. With this option, you must ensure that ranges are assigned to the Publisher and each Subscriber, and that new ranges are assigned if the initial ranges are used.

None is only recommended for indexed views and for backwards compatibility with earlier versions of Microsoft SQL Server.

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

См. также

Справочник

Пространство имен Microsoft.SqlServer.Replication

IdentityRangeManagementOption

Другие ресурсы

Управление ограничениями, идентификаторами и триггерами с помощью параметра «NOT FOR REPLICATION»

Репликация столбцов идентификаторов