Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
Applies to:
SQL Server
Azure SQL Managed Instance
Changes the options for a Subscriber. Any distribution task for the Subscribers to this Publisher is updated. This stored procedure writes to the MSsubscriber_info
table in the distribution database. This stored procedure is executed at the Publisher on the publication database.
Transact-SQL syntax conventions
sp_changesubscriber
[ @subscriber = ] N'subscriber'
[ , [ @type = ] type ]
[ , [ @login = ] N'login' ]
[ , [ @password = ] N'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 = ] N'description' ]
[ , [ @security_mode = ] security_mode ]
[ , [ @publisher = ] N'publisher' ]
[ ; ]
The name of the Subscriber on which to change the options. @subscriber is sysname, with no default.
The Subscriber type. @type is tinyint, with a default of NULL
.
0
indicates a SQL Server Subscriber.1
specifies a non-SQL Server or other ODBC data source server Subscriber.The SQL Server Authentication login ID. @login is sysname, with a default of NULL
.
The SQL Server Authentication password. @password is sysname, with a default of %
, which indicates there's no change to the password property.
This parameter is deprecated and is maintained for backward compatibility of scripts.
This parameter is deprecated and is maintained for backward compatibility of scripts.
This parameter is deprecated and is maintained for backward compatibility of scripts.
Specifies the frequency with which to schedule the distribution task. @frequency_type is int, and can be one of these values.
Value | Description |
---|---|
1 |
One time |
2 |
On demand |
4 |
Daily |
8 |
Weekly |
16 |
Monthly |
32 |
Monthly relative |
64 |
Autostart |
128 |
Recurring |
The interval for @frequency_type. @frequency_interval is int, with a default of NULL
.
The date of the distribution task. 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.
Value | Description |
---|---|
1 |
First |
2 |
Second |
4 |
Third |
8 |
Fourth |
16 |
Last |
Specifies how often the distribution task should recur during the defined @frequency_type. @frequency_recurrence_factor is int, with a default of NULL
.
Specifies how often to reschedule during the defined period. @frequency_subday is int, and can be one of these values.
Value | Description |
---|---|
1 |
Once |
2 |
Second |
4 |
Minute |
8 |
Hour |
The interval for @frequency_subday. @frequency_subday_interval is int, with a default of NULL
.
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
.
The time of day when the distribution task stops being scheduled, formatted as HHmmss
. @active_end_time_of_day is int, with a default of NULL
.
The date when the distribution task is first scheduled, formatted as yyyyMMdd
. @active_start_date is int, with a default of NULL
.
The date when the distribution task stops being scheduled, formatted as yyyyMMdd
. @active_end_date is int, with a default of NULL
.
An optional text description. @description is nvarchar(255), with a default of NULL
.
The implemented security mode. @security_mode is int, and can be one of these values.
Value | Description |
---|---|
0 |
SQL Server Authentication |
1 |
Windows Authentication |
Specifies a non-SQL Server Publisher. @publisher is sysname, with a default of NULL
.
@publisher shouldn't be used when changing article properties on a SQL Server Publisher.
0
(success) or 1
(failure).
sp_changesubscriber
is used in all types of replication.
Only members of the sysadmin fixed server role can execute sp_changesubscriber
.
Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari ini