sp_changedistributiondb (Transact-SQL)
Zmienia właściwości baza danych dystrybucji.Ta procedura przechowywana jest wykonywany na dystrybutor na dowolnej bazy danych.
sp_changedistributiondb [ @database= ] 'database'
[ , [ @property= ] 'property' ]
[ , [ @value= ] 'value' ]
Argumenty
[ @database=] 'database'
Is the name of the distribution database.database is sysname, with no default.[ @property=] 'property'
Is the property to change for the given database.property is sysname, and can be one of these values.Wartość
Description
history_retention
Okres zachowywania historia tabela.
max_distretention
Okres zachowywania maksymalną dystrybucji.
min_distretention
Minimum okres przechowywania dystrybucji.
NULL(default)
Wszystkie dostępne Właściwość wartości są drukowane.
[ @value=] 'value'
Is the new value for the specified property.value is nvarchar(255), with a default of NULL.
Wartości kodów powrotnych
0 (sukces) lub 1 (brak)
Remarks
sp_changedistributiondb jest używany we wszystkich typach replikacja.
Uprawnienia
Tylko członkowie sysadmin stała rola serwera mogą być wykonać sp_changedistributiondb.
See Also