Site icon Database Tutorials

How To Give Permission To Developers For Change Their Passwords On SQL Server(Grant Alter)

 

Sometimes developers need a permission for change their login’s password.

if you do not give them to necessary permission they can not change their password. They will get an error like below.

Cannot alter the login ‘test’, because it does not exist or you do not have permission.

 

Normally for a single login we can give this permission as follows.

 

But sometimes we may want to do the same for all the logins on the instance.

With the help of the following query we can prepare a script bundle to do this.

 

You can also tell the developer that you can change your own password by using the following script.

Exit mobile version