다음을 통해 공유


SyncType Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The SyncType property controls subscription agent behavior when subscription synchronization is required.

구문

object.SyncType [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.

  • value
    A long integer that specifies subscription agent synchronization behavior as described in Settings.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetSyncType(SQLDMO_SUBSYNC_TYPE FAR* pRetVal);
HRESULT SetSyncType(SQLDMO_SUBSYNC_TYPE NewValue);

Settings

Constant

Value

Description

SQLDMOSubSync_Auto

1

The subscription agent synchronizes the subscription automatically..

SQLDMOSubSync_Default

1

SQLDMOSubSync_Auto.

SQLDMOSubSync_Manual

0

Maintained for backward compatibility.

SQLDMOSubSync_None

2

The subscription agent does not attempt publication synchronization. User interaction is necessary to ensure synchronization.

주의

If an application sets SyncTypeafter the initial snapshot has been created, this subscription will be reinitialized and must by resynchronized. Reinitialization occurs when the next scheduled merge agent runs.