sp_changedistributor_password (Transact-SQL)

變更散發者的密碼。這個預存程序執行於任何資料庫中的散發者端。

主題連結圖示Transact-SQL 語法慣例

語法

sp_changedistributor_password [ @password= ] 'password' 

引數

  • [ @password=] 'password'
    這是新的密碼。passwordsysname,沒有預設值。如果散發者在本機,distributor_admin 系統登入的密碼就會改變。

傳回碼值

0 (成功) 或 1 (失敗)

備註

sp_changedistributor_password 用於所有類型的複寫中。

權限

只有系統管理員 (sysadmin) 固定伺服器角色的成員,才能夠執行 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

請參閱

參考

sp_adddistributor (Transact-SQL)
複寫預存程序 (Transact-SQL)

其他資源

How to: View and Modify Replication Security Settings (Replication Transact-SQL Programming)
保護散發者

說明及資訊

取得 SQL Server 2005 協助