sp_changedistributor_password(Transact-SQL)

배포자의 암호를 변경합니다. 이 저장 프로시저는 모든 데이터베이스의 배포자에서 실행됩니다.

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

구문

sp_changedistributor_password [ @password= ] 'password' 

인수

  • [ @password=] 'password'
    새 암호입니다. passwordsysname이며 기본값은 없습니다. 배포자가 로컬인 경우 distributor_admin 시스템 로그인의 암호가 변경됩니다.

반환 코드 값

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

주의

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

-- Change the password on the Distributor. 
-- To avoid storing the password in the script file, the value is passed 
-- into SQLCMD as a scripting variable. For information about how to use 
-- scripting variables on the command line and in SQL Server Management
-- Studio, see the "Executing Replication Scripts" section in the topic
-- "Programming Replication Using System Stored Procedures".
USE master
EXEC sp_changedistributor_password $(Password)
GO

사용 권한

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

참고 항목

참조

sp_adddistributor(Transact-SQL)

복제 저장 프로시저(Transact-SQL)

개념

복제 보안 설정 보기 및 수정

배포자 보안 설정