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'
    구독자의 이름입니다. subscribersysname입니다. 구독자의 이름은 데이터베이스에서 고유해야 하고 이미 존재해서는 안 되며 NULL일 수 없습니다.
  • [ @agent_type=] type
    에이전트의 유형입니다. typesmallint이며 기본값은 0입니다. 0은 배포 에이전트를 나타냅니다. 1은 병합 에이전트를 나타냅니다.
  • [ @frequency_type = ] frequency_type
    배포 작업을 예약하는 빈도입니다. frequency_typeint이며 기본값은 64입니다. 10개의 일정 열이 있습니다.
  • [ @frequency_interval = ] frequency_interval
    frequency_type이 설정한 빈도에 적용할 값입니다. frequency_intervalint이며 기본값은 1입니다.
  • [ @frequency_relative_interval = ]frequency_relative_interval
    배포 작업의 날짜입니다. frequency_relative_intervalint이며 기본값은 1입니다.
  • [ @frequency_recurrence_factor = ] frequency_recurrence_factor
    frequency_type에 사용되는 되풀이 비율입니다. frequency_recurrence_factorint이며 기본값은 0입니다.
  • [ @frequency_subday = ]frequency_subday
    정의된 기간 동안 다시 계획하는 빈도(분)입니다. frequency_subdayint이며 기본값은 4입니다.
  • [ @frequency_subday_interval = ]frequency_subday_interval
    frequency_subday에 대한 간격입니다. frequency_subday_intervalint이며 기본값은 5입니다.
  • [ @active_start_time_of_day = ] active_start_time_of_day
    하루 중에서 배포 작업이 처음으로 실행되도록 예약된 시간입니다. active_start_time_of_dayint이며 기본값은 0입니다.
  • [ @active_end_time_of_day = ] active_end_time_of_day
    하루 중에서 배포 작업이 마지막으로 실행되도록 예약된 시간입니다. active_end_time_of_dayint이며 기본값은 24시간제의 오후 11시 59분 59초를 의미하는 235959입니다.
  • [ @active_start_date = ] active_start_date
    배포 작업이 처음으로 실행되도록 예약된 날짜이며 YYYYMMDD 형식으로 표시됩니다. active_start_dateint이며 기본값은 0입니다.
  • [ @active_end_date = ] active_end_date
    배포 작업이 마지막으로 실행되도록 예약된 날짜이며 YYYYMMDD 형식으로 표시됩니다. active_end_dateint이며 기본값은 9999년 12월 31일을 의미하는 99991231입니다.
  • [ @publisher = ] 'publisher'
    비 Microsoft SQL Server 게시자를 지정합니다. publishersysname이며 기본값은 NULL입니다.

    참고 SQL Server 게시자에 대한 아티클 속성을 변경할 때는 publisher를 사용하지 마십시오.

반환 코드 값

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

주의

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

사용 권한

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

참고 항목

참조

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

도움말 및 정보

SQL Server 2005 지원 받기