sp_changesubscriber(Transact-SQL)

적용 대상:SQL ServerAzure SQL Managed Instance

구독자에 대한 옵션을 변경합니다. 이 게시자에 대한 구독자에 대한 모든 배포 작업이 업데이트됩니다. 이 저장 프로시저는 배포 데이터베이스의 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' 옵션을 변경할 구독자의 이름입니다. 구독자는 sysname이며 기본값은 없습니다.

[ @type = ] type 구독자 유형입니다. type은 tinyint이며 기본값은 NULL입니다. 0 은 Microsoft SQL Server 구독자를 나타냅니다. 1 은 SQL Server 또는 기타 ODBC 데이터 원본 서버 구독자를 지정합니다.

[ @login = ] 'login'SQL Server 인증 로그인 ID입니다. 로그인은 sysname이며 기본값은 NULL입니다.

[ @password = ] 'password' SQL Server 인증 암호입니다. 암호는 sysname이며 기본값은 .입니다%. % 은 암호 속성이 변경되지 않음을 나타냅니다.

[ @commit_batch_size = ] commit_batch_size 이전 버전과의 호환성만 지원합니다.

[ @status_batch_size = ] status_batch_size 이전 버전과의 호환성만 지원합니다.

[ @flush_frequency = ] flush_frequency 이전 버전과의 호환성만 지원합니다.

[ @frequency_type = ] frequency_type 배포 작업을 예약할 빈도입니다. frequency_type int이며 이러한 값 중 하나일 수 있습니다.

Description
1 한 번
2 주문형
4 일간
8 주간
16 매월
32 월별 상대
64 자동 시작
128 되풀이

[ @frequency_interval = ] frequency_intervalfrequency_type 간격입니다. frequency_interval 기본값이 NULL인 int입니다.

[ @frequency_relative_interval = ] frequency_relative_interval 배포 작업의 날짜입니다. 이 매개 변수는 frequency_type 32(월별 상대)로 설정된 경우에 사용됩니다. frequency_relative_interval int이며 이러한 값 중 하나일 수 있습니다.

Description
1 First
2 Second
4 세 번째
8 네 번째
16 마지막

[ @frequency_recurrence_factor = ] frequency_recurrence_factor 정의된 frequency_type 동안 배포 태스크가 되풀이되는 빈도입니다. frequency_recurrence_factor 기본값이 NULL인 int입니다.

[ @frequency_subday = ] frequency_subday 정의된 기간 동안 다시 예약하는 빈도입니다. frequency_subday int이며 이러한 값 중 하나일 수 있습니다.

Description
1 한 번
2 Second
4 Minute
8 Hour

[ @frequency_subday_interval = ] frequency_subday_intervalfrequence_subday 간격입니다. frequency_subday_interval 기본값이 NULL인 int입니다.

[ @active_start_time_of_day = ] active_start_time_of_day 배포 작업이 처음 예약되고 형식 HHmmss이 지정된 시간입니다. active_start_time_of_day 기본값이 NULL인 int입니다.

[ @active_end_time_of_day = ] active_end_time_of_day 배포 작업이 예약되지 않고 형식 HHmmss이 지정된 하루 중 시간입니다. active_end_time_of_day 기본값이 NULL인 int입니다.

[ @active_start_date = ] active_start_date 배포 작업이 처음 예약되고 형식 yyyyMMdd이 지정된 날짜입니다. active_start_date 기본값이 NULL인 int입니다.

[ @active_end_date = ] active_end_date 배포 태스크의 예약이 중지되고 형식이 지정된 날짜입니다 yyyyMMdd. active_end_date 기본값이 NULL인 int입니다.

[ @description = ] 'description' 선택적 텍스트 설명입니다. descriptionnvarchar(255)이며 기본값은 NULL입니다.

[ @security_mode = ] security_mode 구현된 보안 모드입니다. security_mode int이며 이러한 값 중 하나일 수 있습니다.

설명
0 SQL Server 인증
1 Windows 인증

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

참고 항목

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

반환 코드 값

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

설명

sp_changesubscriber 모든 유형의 복제본(replica) 사용됩니다.

사용 권한

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)