sp_changesubscriber (języka Transact-SQL)
Zmienia opcje subskrybenta.Każde zadanie dystrybucji dla subskrybentów tej Wydawca jest aktualizowany.Zapisuje tę procedura składowana MSsubscriber_info tabela baza danych dystrybucji.Ta procedura składowana jest wykonywany na Wydawca na bazie publikacja.
Składnia
sp_changesubscriber [ @subscriber= ] 'subscriber'
[ , [ @type= ] type ]
[ , [ @login= ] 'login' ]
[ , [ @password= ] 'password' ]
[ , [ @commit_batch_size= ] commit_batch_size ]
[ , [ @status_batch_size= ] status_batch_size ]
[ , [ @flush_frequency= ] flush_frequency ]
[ , [ @frequency_type= ] frequency_type ]
[ , [ @frequency_interval= ] frequency_interval ]
[ , [ @frequency_relative_interval= ] frequency_relative_interval ]
[ , [ @frequency_recurrence_factor= ] frequency_recurrence_factor ]
[ , [ @frequency_subday= ] frequency_subday ]
[ , [ @frequency_subday_interval= ] frequency_subday_interval ]
[ , [ @active_start_time_of_day= ] active_start_time_of_day ]
[ , [ @active_end_time_of_day= ] active_end_time_of_day ]
[ , [ @active_start_date= ] active_start_date ]
[ , [ @active_end_date= ] active_end_date ]
[ , [ @description= ] 'description' ]
[ , [ @security_mode= ] security_mode ]
[ , [ @publisher = ] 'publisher' ]
Argumenty
[ @ subskrybent = 'subscriber"
Is the name of the Subscriber on which to change the options.subscriber is sysname, with no default.[ @type= type
Is the Subscriber type.type is tinyint, with a default of NULL.0 indicates a Microsoft SQL Server Subscriber.1 określa nie-SQL Server lub innych danych ODBC źródło serwer subskrybentów.[ @ login = 'login"
Is the SQL Server Authentication login ID.login is sysname, with a default of NULL.[ @ hasło = 'password"
Is the SQL Server Authentication password.password is sysname, with a default of %.% wskazuje brak zmian właściwość hasła.[ @ commit_batch_size = commit_batch_size
Obsługiwane zgodność z poprzednimi wersjami.[ @ status_batch_size = status_batch_size
Obsługiwane zgodność z poprzednimi wersjami.[ @flush_frequency=] flush_frequency
Obsługiwane zgodność z poprzednimi wersjami.[ @ frequency_type = frequency_type
Is the frequency with which to schedule the distribution task.frequency_type is int, and can be one of these values.Wartość
Opis
1
Jedenczas
2
Na żądanie
4
Dzienny
8
Tygodniowy
16
Miesięczne
32
Miesięczne względna
64
Autostart
128
Cykliczne
[ @ frequency_interval = frequency_interval
Is the interval for frequency_type.frequency_interval is int, with a default of NULL.[ @ frequency_relative_interval = frequency_relative_interval
Jest to data zadanie dystrybucji.This parameter is used when frequency_type is set to 32 (monthly relative).frequency_relative_interval is int, and can be one of these values.Wartość
Opis
1
First
2
Drugie
4
Trzecia
8
Czwarty
16
Last
[ @ frequency_recurrence_factor = frequency_recurrence_factor
Is how often the distribution task should recur during the defined frequency_type.frequency_recurrence_factor is int, with a default of NULL.[ @ frequency_subday = frequency_subday
Is how often to reschedule during the defined period.frequency_subday is int, and can be one of these values.Wartość
Opis
1
Raz
2
Drugie
4
Minuta
8
Godziny
[ @ frequency_subday_interval = frequency_subday_interval
Is the interval for frequence_subday.frequency_subday_interval is int, with a default of NULL.[ @ active_start_time_of_day = active_start_time_of_day
Is the time of day when the distribution task is first scheduled, formatted as HHMMSS.active_start_time_of_day is int, with a default of NULL.[ @ active_end_time_of_day = active_end_time_of_day
Is the time of day when the distribution task stops being scheduled, formatted as HHMMSS.active_end_time_of_dayis int, with a default of NULL.[ @ active_start_date = active_start_date
Is the date when the distribution task is first scheduled, formatted as YYYYMMDD.active_start_date is int, with a default of NULL.[ @ active_end_date = active_end_date
Is the date when the distribution task stops being scheduled, formatted as YYYYMMDD.active_end_dateis int, with a default of NULL.[ @ Opis = 'description"
Is an optional text description.description is nvarchar(255), with a default of NULL.[ @ security_mode = security_mode
Is the implemented security mode.security_mode is int, and can be one of these values.Wartość
Opis
0
SQL Server Uwierzytelnianie
1
Uwierzytelnianie systemu Windows
[ program publisher @ =] 'publisher"
Specifies a non-SQL Server Publisher.publisher is sysname, with a default of NULL.Ostrzeżenie
publishernie należy używać podczas zmieniania właściwości artykuł na SQL Server Wydawca.
Wartości kodów powrotnych
0 (sukces) lub 1 (błąd)
Uwagi
sp_changesubscriber jest używana we wszystkich typach replikacja.
Uprawnienia
Tylko członkowie sysadmin stała rola serwera można wykonać sp_changesubscriber.