sp_changedistributor_password (języka Transact-SQL)

Zmienia hasło dla dystrybutora.Ta procedura składowana jest wykonywany na dystrybutora na dowolnej bazy danych.

Ikona łącza do tematuKonwencje składni Transact-SQL

Składnia

sp_changedistributor_password [ @password= ] 'password' 

Argumenty

  • [ @ hasło = 'hasło"
    Is the new password.password is sysname, with no default.Jeśli dystrybutor jest lokalna, hasło distributor_admin logowania w systemie zostanie zmieniona.

Wartości kodów powrotnych

0 (sukces) lub 1 (błąd)

Uwagi

sp_changedistributor_password jest używana we wszystkich typach replikacja.

Przykład

-- 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

Uprawnienia

Tylko członkowie sysadmin stała rola serwera można wykonać sp_changedistributor_password.