Updates the properties of the distribution database.
sp_changedistributiondb [@database =] 'database'
[,[@property =] 'property'] [,[@value =] 'value']
| Value | Description |
|---|---|
| history_retention | History table retention period. |
| max_distretention | Maximum distribution retention period. This value must be greater than or equal to the retention period of all transactional publications in the distribution database. |
| min_distretention | Minimum distribution retention period. |
| NULL (default) | All available property values are printed. |
0 (success) or 1 (failure)
sp_changedistributiondb is used in all types of replication.
Only members of the sysadmin fixed server role can execute sp_changedistributiondb.
| sp_adddistributiondb | sp_helpdistributiondb |
| sp_dropdistributiondb | System Stored Procedures |