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 HistoryRetention property specifies the number of hours to maintain replication distribution history data.
Syntaxe
object
.HistoryRetention [=value]
Parts
- object
An expression that evaluates to an object in the Applies To list.
- value
A positive long integer. The default is 48 hours.
Data Type
Long
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetHistoryRetention(LPDWORD pRetVal);
HRESULT SetHistoryRetention(DWORD NewValue);
Notes
Installing replication creates a SQL Server Agent job responsible for cleaning the replication history tables. Rows in the tables older than the current hour minus the retention period are targets of the cleaning.