Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
van toepassing op:SQL Server
Azure SQL Managed Instance
Hiermee wijzigt u het wachtwoord voor een distributeur. Deze opgeslagen procedure wordt uitgevoerd bij de Distributeur op elke database. Als dit een externe distributeur is, moet deze worden uitgevoerd op alle Publisher-servers die deze distributeur gebruiken. Als de distributie- of Publisher-database zich in een beschikbaarheidsgroep bevindt, moet deze worden uitgevoerd op alle knooppunten Distributeur en Publisher. Het maakt niet uit of het knooppunt primair of secundair is.
Transact-SQL syntaxisconventies
Syntaxis
sp_changedistributor_password [ @password = ] N'password'
[ ; ]
Argumenten
[ @password = ] N'wachtwoord'
Het nieuwe wachtwoord.
@password is sysname, zonder standaardinstelling. Als de distributeur lokaal is, wordt het wachtwoord van de distributor_admin
systeemaanmelding gewijzigd.
Codewaarden retourneren
0
(geslaagd) of 1
(mislukt).
Opmerkingen
sp_changedistributor_password
wordt gebruikt in alle typen replicatie.
Voorbeelden
-- 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;
GO
DECLARE @password NVARCHAR(50) = "<password>";
EXEC sp_changedistributor_password @password;
GO
Machtigingen
Alleen leden van de sysadmin vaste serverrol kunnen sp_changedistributor_password
uitvoeren.