sp_changesubscriber_schedule(Transact-SQL)

적용 대상:SQL ServerAzure SQL Managed Instance

구독자에 대한 배포 에이전트 또는 병합 에이전트 일정을 변경합니다. 이 저장 프로시저는 모든 데이터베이스의 게시자에서 실행됩니다.

Transact-SQL 구문 표기 규칙

구문

  
sp_changesubscriber_schedule [ @subscriber = ] 'subscriber', [ @agent_type = ] type  
    [ , [ @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 ]  
    [ , [ @publisher = ] 'publisher' ]  

인수

[ @subscriber = ] 'subscriber' 구독자의 이름입니다. 구독자가 sysname입니다. 구독자의 이름은 데이터베이스에서 고유해야 하고, 존재하지 않아야 하며, NULL일 수 없습니다.

[ @agent_type = ] type 에이전트의 유형입니다. type은 smallint이고 기본값은 0입니다. 0은 배포 에이전트 나타냅니다. 1은 병합 에이전트 나타냅니다.

[ @frequency_type = ] frequency_type 배포 작업을 예약할 빈도입니다. frequency_type int이며 기본값은 64입니다. 일정 열은 10개입니다.

[ @frequency_interval = ] frequency_intervalfrequency_type 설정된 빈도에 적용되는 값입니다. frequency_interval 기본값이 1인 int입니다.

[ @frequency_relative_interval = ] frequency_relative_interval 배포 작업의 날짜입니다. frequency_relative_interval 기본값이 1인 int입니다.

[ @frequency_recurrence_factor = ] frequency_recurrence_factorfrequency_type 사용되는 되풀이 요소입니다. frequency_recurrence_factor int이며 기본값은 0입니다.

[ @frequency_subday = ] frequency_subday 정의된 기간 동안 일정이 변경되는 빈도(분)입니다. frequency_subday int이며 기본값은 4입니다.

[ @frequency_subday_interval = ] frequency_subday_intervalfrequency_subday 간격입니다. frequency_subday_interval 기본값이 5인 int입니다.

[ @active_start_time_of_day = ] active_start_time_of_day 배포 작업이 처음 예약된 시간입니다. active_start_time_of_day 기본값이 0인 int입니다.

[ @active_end_time_of_day = ] active_end_time_of_day 배포 작업이 예약되지 않는 시간입니다. active_end_time_of_day 기본값235959, 즉 24시간 시계에서 오후 11시 59분 59분입니다.

[ @active_start_date = ] active_start_date 배포 작업이 처음 예약되고 형식 yyyyMMdd이 지정된 날짜입니다. active_start_date int이며 기본값은 0입니다.

[ @active_end_date = ] active_end_date 배포 태스크의 예약이 중지되고 형식이 지정된 날짜입니다 yyyyMMdd. active_end_date 기본값99991231인 int이며, 이는 9999년 12월 31일을 의미합니다.

[ @publisher = ] 'publisher' Microsoft SQL Server 이외 게시자를 지정합니다. 게시자는 sysname이며 기본값은 NULL입니다.

참고 항목

SQL Server 게시자의 아티클 속성을 변경할 때는 게시 자를 사용하면 안 됩니다.

반환 코드 값

0 (성공) 또는 1 (실패)

설명

sp_changesubscriber_schedule 모든 유형의 복제본(replica) 사용됩니다.

사용 권한

sysadmin 고정 서버 역할의 멤버만 sp_changesubscriber_schedule 실행할 수 있습니다.

참고 항목

sp_addsubscriber_schedule(Transact-SQL)
시스템 저장 프로시저(Transact-SQL)