Aracılığıyla paylaş


sp_approlepassword (Transact-SQL)

Geçerli veritabanındaki uygulama rolü parolasını değiştirir.

Important noteImportant Note:

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Kullanımı uygulama rolü DEĞİŞTİR yerine.

Topic link iconTransact-SQL sözdizimi kuralları

sp_approlepassword [ @rolename= ] 'role' , [ @newpwd = ] 'password' 

Bağımsız değişkenler

  • [ @rolename = ] 'role'
    Is the name of the application role.Role is sysname, with no default.role must exist in the current database.

  • [ @newpwd = ] 'password'
    Is the new password for the application role.password is sysname, with no default.password cannot be NULL.

    Security noteSecurity Note:

    Bir NULL parolasıyla kullanmayın.Güçlü bir parola kullanın.Daha fazla bilgi için bkz:Güçlü parolaları.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (hata)

Remarks

sp_approlepassword kullanıcı tanımlı bir işlem içinde yürütülemiyor.

İzinler

Veritabanı ALTER ANY uygulama rolü iznine gerek duyar.

Örnekler

Aşağıdaki örnek, parolasını ayarlar PayrollAppRole role uygulama B3r12-36.

EXEC sp_approlepassword 'PayrollAppRole', '''B3r12-36'