Changes the password of an application role in the current database.
sp_approlepassword [@rolename =] 'role', [@newpwd =] 'password'
0 (success) or 1 (failure)
sp_approlepassword cannot be executed within a user-defined transaction.
Only members of the db_securityadmin and db_owner fixed database roles can execute sp_approlepassword.
This example sets the password for the PayrollAppRole application role to Valentine.
EXEC sp_approlepassword 'PayrollAppRole', 'Valentine'
Application Security and Application Roles | sp_setapprole |
sp_addapprole | System Stored Procedures |