sp_changesubscriber_schedule(Transact-SQL)

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

항목 링크 아이콘 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'
    구독자의 이름입니다. 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은 int이며 기본값은 1입니다.

  • [ @frequency_relative_interval=] frequency_relative_interval
    배포 태스크 날짜입니다. frequency_relative_interval은 int이며 기본값은 1입니다.

  • [ @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은 int이며 기본값은 5입니다.

  • [ @active_start_time_of_day=] active_start_time_of_day
    하루 중에서 배포 태스크가 처음으로 실행되도록 예약된 시간입니다. active_start_time_of_day는 int이며 기본값은 0입니다.

  • [ @active_end_time_of_day=] active_end_time_of_day
    하루 중에서 배포 태스크가 마지막으로 실행되도록 예약된 시간입니다. active_end_time_of_day는 int이며 기본값은 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는 int이며 기본값은 9999년 12월 31일을 의미하는 99991231입니다.

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

    [!참고]

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

반환 코드 값

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

주의

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

사용 권한

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

참고 항목

참조

sp_addsubscriber_schedule(Transact-SQL)

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