Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.
The PreCreationMethod property controls Subscriber replication object changes when article synchronization occurs.
Syntaxe
object
.PreCreationMethod [= value]
Parts
- object
An expression that evaluates to an object in the Applies To list.
- value
A long integer that specifies a row modifying action at the Subscriber as described in Settings.
Data Type
Long, enumerated
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetPreCreationMethod(
SQLDMO_PREARTICLE_TYPE* pRetVal);
HRESULT SetPreCreationMethod(
SQLDMO_PREARTICLE_TYPE NewValue);
Settings
| Constant | Value | Description |
|---|---|---|
SQLDMOPreArt_DeleteRows |
2 |
Performs a logged delete prior to synchronization. |
SQLDMOPreArt_DropTable |
1 |
Drops and then re-creates the table to synchronize. |
SQLDMOPreArt_None |
0 |
Does nothing prior to synchronization. |
SQLDMOPreArt_TruncateTable |
3 |
Performs a bulk-logged deletion prior to synchronization. |
Notes
If an application sets PreCreationMethod after the initial snapshot has been created, a new snapshot must be generated and then reapplied to each subscription. Snapshots are applied when the next scheduled snapshot and distribution or merge agent run.