sp_changesubscriber(Transact-SQL)

구독자에 대한 옵션을 변경합니다. 구독자에 대한 모든 배포 작업이 이 게시자로 업데이트됩니다. 이 저장 프로시저는 배포 데이터베이스의 MSsubscriber_info 테이블에 기록합니다. 이 저장 프로시저는 게시 데이터베이스의 게시자에서 실행됩니다.

항목 링크 아이콘Transact-SQL 구문 표기 규칙

구문


sp_changesubscriber [ @subscriber= ] 'subscriber'
    [ , [ @type= ] type ]
    [ , [ @login= ] 'login' ]
    [ , [ @password= ] 'password' ]
    [ , [ @commit_batch_size= ] commit_batch_size ]
    [ , [ @status_batch_size= ] status_batch_size ]
    [ , [ @flush_frequency= ] flush_frequency ]
    [ , [ @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 ]
    [ , [ @description= ] 'description' ]
    [ , [ @security_mode= ] security_mode ]
    [ , [ @publisher = ] 'publisher' ]

인수

  • [ @subscriber=] 'subscriber'
    옵션을 변경할 대상이 되는 구독자의 이름입니다. subscribersysname이며 기본값은 없습니다.
  • [ @type=] type
    구독자의 유형입니다. typetinyint이며 기본값은 NULL입니다. 0은 Microsoft SQL Server 구독자를 나타냅니다. 1은 비-SQL Server(Non-SQL Server) 구독자 또는 기타 ODBC 데이터 원본 서버 구독자를 나타냅니다.
  • [ @login=] 'login'
    SQL Server 인증 로그인 ID입니다. loginsysname이며 기본값은 NULL입니다.
  • [ @password = ] 'password'
    SQL Server 인증 암호입니다. passwordsysname이며 기본값은 **%**입니다. **%**는 암호 속성이 변경되지 않음을 나타냅니다.
  • [ @commit_batch_size=] commit_batch_size
    이전 버전과의 호환성을 위해서만 지원됩니다.
  • [ @status_batch_size=] status_batch_size
    이전 버전과의 호환성을 위해서만 지원됩니다.
  • [ @flush_frequency=] flush_frequency
    이전 버전과의 호환성을 위해서만 지원됩니다.
  • [ @frequency_type = ] frequency_type
    배포 작업을 계획하는 빈도입니다. frequency_typeint이며 다음 값 중 하나일 수 있습니다.

    설명

    1

    한 번

    2

    요청 시

    4

    매일

    8

    매주

    16

    매월

    32

    매월 상대적

    64

    자동 시작

    128

    되풀이

  • [ @frequency_interval = ] frequency_interval
    frequency_type에 대한 간격입니다. frequency_intervalint이며 기본값은 NULL입니다.
  • [ @frequency_relative_interval = ]frequency_relative_interval
    배포 작업 날짜입니다. 이 매개 변수는 frequency_type32(매월 상대적)로 설정되어 있을 때 사용됩니다. frequency_relative_intervalint이며 다음 값 중 하나일 수 있습니다.

    설명

    1

    첫째

    2

    둘째

    4

    셋째

    8

    넷째

    16

    마지막

  • [ @frequency_recurrence_factor = ] frequency_recurrence_factor
    frequency_type에 정의되어 있는 기간 동안 되풀이 되는 배포 작업의 빈도입니다. frequency_recurrence_factorint이며 기본값은 NULL입니다.
  • [ @frequency_subday = ]frequency_subday
    정의된 기간 동안 다시 예약하는 빈도입니다. frequency_subdayint이며 다음 값 중 하나일 수 있습니다.

    설명

    1

    한 번

    2

    4

    8

    시간

  • [ @frequency_subday_interval = ]frequency_subday_interval
    frequence_subday에 대한 간격입니다. frequency_subday_intervalint이며 기본값은 NULL입니다.
  • [ @active_start_time_of_day = ] active_start_time_of_day
    하루 중에서 배포 작업이 처음으로 실행되도록 예약된 시간이며 HHMMSS 형식으로 표시됩니다. active_start_time_of_dayint이며 기본값은 NULL입니다.
  • [ @active_end_time_of_day = ] active_end_time_of_day
    하루 중에서 배포 작업이 마지막으로 실행되도록 예약된 시간이며 HHMMSS 형식으로 표시됩니다. active_end_time_of_dayint이며 기본값은 NULL입니다.
  • [ @active_start_date = ] active_start_date
    배포 작업이 처음으로 실행되도록 예약된 날짜이며 YYYYMMDD 형식으로 표시됩니다. active_start_dateint이며 기본값은 NULL입니다.
  • [ @active_end_date = ] active_end_date
    배포 작업이 마지막으로 실행되도록 예약된 날짜이며 YYYYMMDD 형식으로 표시됩니다. active_end_dateint이며 기본값은 NULL입니다.
  • [ @description =] 'description'
    선택적인 텍스트 설명입니다. description은 **nvarchar(255)**이며 기본값은 NULL입니다.
  • [ @security_mode=] security_mode
    구현된 보안 모드입니다. security_modeint이며 다음 값 중 하나일 수 있습니다.

    설명

    0

    SQL Server 인증

    1

    Windows 인증

  • [ @publisher = ] 'publisher'
    비-SQL Server(Non-SQL Server) 게시자를 지정합니다. publishersysname이며 기본값은 NULL입니다.

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

반환 코드 값

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

주의

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

사용 권한

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

참고 항목

참조

sp_addsubscriber(Transact-SQL)
sp_dropsubscriber(Transact-SQL)
sp_helpdistributiondb(Transact-SQL)
sp_helpserver(Transact-SQL)
sp_helpsubscriberinfo(Transact-SQL)
시스템 저장 프로시저(Transact-SQL)

도움말 및 정보

SQL Server 2005 지원 받기