sp_changesubscriber_schedule(Transact-SQL)

적용 대상: SQL Server Azure SQL Managed Instance

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

Transact-SQL 구문 표기 규칙

구문

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

인수

[ @subscriber = ] N'subscriber'

구독자의 이름입니다. @subscriber 기본값이 없는 sysname입니다. 구독자의 이름은 데이터베이스에서 고유해야 하고, 존재하지 않아야 하며, 사용할 수 없습니다 NULL.

[ @agent_type = ] agent_type

에이전트의 유형입니다. @agent_type 기본값0인 smallint입니다.

  • 0는 배포 에이전트 나타냅니다.
  • 1는 병합 에이전트 나타냅니다.

[ @frequency_type = ] frequency_type

배포 작업을 예약할 빈도를 지정합니다. @frequency_type int이며 이러한 값 중 하나일 수 있습니다.

설명
1 한 번
2 주문형
4 매일
8 매주
16 매월
32 월별 상대
64(기본값) 자동 시작
128 되풀이

[ @frequency_interval = ] frequency_interval

@frequency_type 설정된 빈도에 적용되는 값입니다. @frequency_interval int이며 @frequency_type에 따라 달라집니다.

@frequency_type 값 @frequency_interval 영향
1(기본값) @frequency_interval 사용되지 않습니다.
4 @frequency_interval 일마다.
8 @frequency_interval 다음 중 하나 이상입니다(| (비트 OR) (Transact-SQL) 논리 연산자:

1 = 일요일
2 = 월요일
4 = 화요일
8 = 수요일
16 = 목요일
32 = 금요일
64 = 토요일
16 해당 월의 @frequency_interval 일입니다.
32 @frequency_interval 다음 옵션 중 하나입니다.

1 = 일요일
2 = 월요일
3 = 화요일
4 = 수요일
5 = 목요일
6 = 금요일
7 = 토요일
8 = 일
9 = 평일
10 = 주말
64 @frequency_interval 사용되지 않습니다.
128 @frequency_interval 사용되지 않습니다.

[ @frequency_relative_interval = ] frequency_relative_interval

배포 작업의 날짜입니다. @frequency_relative_interval int이며 이러한 값 중 하나일 수 있습니다.

설명
1(기본값) 첫 번째
2 두 번째
4 세 번째
8 네 번째
16 마지막

[ @frequency_recurrence_factor = ] frequency_recurrence_factor

@frequency_type 사용되는 되풀이 요소입니다. @frequency_recurrence_factor 기본값0인 int입니다.

[ @frequency_subday = ] frequency_subday

정의된 기간 동안 다시 예약할 빈도(분)를 지정합니다. @frequency_subday int이며 이러한 값 중 하나일 수 있습니다.

설명
1 한 번
2 둘째
4(기본값) Minute
8 Hour

[ @frequency_subday_interval = ] frequency_subday_interval

작업의 각 실행 사이에 발생하는 frequency_subday 기간의 수입니다. @frequency_subday_interval 기본값5int입니다.

[ @active_start_time_of_day = ] active_start_time_of_day

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

[ @active_end_time_of_day = ] active_end_time_of_day

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

[ @active_start_date = ] active_start_date

배포 작업이 처음 예약된 날짜이며 형식은 다음과 같습니다 yyyyMMdd. @active_start_date 기본값NULLint입니다.

[ @active_end_date = ] active_end_date

배포 작업이 예약되지 않는 날짜로 형식이 지정됩니다 yyyyMMdd. @active_end_date 기본값99991231인 int이며, 이는 9999년 12월 31일을 의미합니다.

[ @publisher = ] N'publisher'

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

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

반환 코드 값

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

설명

sp_changesubscriber_schedule 는 모든 유형의 복제에서 사용됩니다.

사용 권한

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