sp_changesubscriber_schedule(Transact-SQL)
적용 대상:SQL ServerAzure SQL Managed Instance
구독자에 대한 배포 에이전트 또는 병합 에이전트 일정을 변경합니다. 이 저장 프로시저는 모든 데이터베이스의 게시자에서 실행됩니다.
구문
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_interval
frequency_type 설정된 빈도에 적용되는 값입니다. frequency_interval 기본값이 1인 int입니다.
[ @frequency_relative_interval = ] frequency_relative_interval
배포 작업의 날짜입니다. frequency_relative_interval 기본값이 1인 int입니다.
[ @frequency_recurrence_factor = ] frequency_recurrence_factor
frequency_type 사용되는 되풀이 요소입니다. frequency_recurrence_factor int이며 기본값은 0입니다.
[ @frequency_subday = ] frequency_subday
정의된 기간 동안 일정이 변경되는 빈도(분)입니다. frequency_subday int이며 기본값은 4입니다.
[ @frequency_subday_interval = ] frequency_subday_interval
frequency_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)
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기