The PreCreationMethod property controls Subscriber replication object changes when article synchronization occurs.
object.PreCreationMethod [= value]
object
Expression that evaluates to an object in the Applies To list
value
Long integer that specifies a row modifying action at the Subscriber as described in Settings
Long, enumerated
Read/write
HRESULT GetPreCreationMethod(
SQLDMO_PREARTICLE_TYPE* pRetVal);
HRESULT SetPreCreationMethod(
SQLDMO_PREARTICLE_TYPE NewValue);
Constant | Value | Description |
---|---|---|
SQLDMOPreArt_DeleteRows | 2 | Perform a logged delete prior to synchronization. |
SQLDMOPreArt_DropTable | 1 | Drop and recreate table to synchronize. |
SQLDMOPreArt_None | 0 | Do nothing prior to synchronization. |
SQLDMOPreArt_TruncateTable | 3 | Perform a bulk-logged delete prior to synchronization. |
If an application sets PreCreationMethod after the initial snapshot has been created, a new snapshot must be generated and reapplied to each subscription. Snapshots are applied when the next scheduled snapshot and distribution or merge agent run.