| title | sp_changedistributor_password (Transact-SQL) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 03/06/2017 | ||
| ms.prod | sql-server-2016 | ||
| ms.reviewer | |||
| ms.suite | |||
| ms.technology |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | language-reference | ||
| applies_to |
|
||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | 4a496e60-414a-4026-ba7a-3e89391d39b7 | ||
| caps.latest.revision | 31 | ||
| author | BYHAM | ||
| ms.author | rickbyh | ||
| manager | jhubbard |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]
Changes the password for a Distributor. This stored procedure is executed at the Distributor on any database.
Transact-SQL Syntax Conventions
sp_changedistributor_password [ @password= ] 'password'
[ @password=] 'password'
Is the new password. password is sysname, with no default. If the Distributor is local, the password of the distributor_admin system login is changed.
0 (success) or 1 (failure)
sp_changedistributor_password is used in all types of replication.
[!code-sqlHowTo#sp_changedistributor_password]
Only members of the sysadmin fixed server role can execute sp_changedistributor_password.
View and Modify Replication Security Settings
Secure the Distributor
sp_adddistributor (Transact-SQL)
Replication Stored Procedures (Transact-SQL)