There is a warning in the SQL Server Books Online – to stop using sp_password, as in future editions , this procedure will cease to be used.
In effect , sp_password calls ALTER LOGIN.
To run ALTER LOGIN – an example is :
ALTER LOGIN jackvamvas WITH password = ‘hsjo9Bxzh!123’
In the example above the user executing code must have CONTROL SERVER permissions – as they are not specifying the old password. But if assigned ALTER ANY LOGIN than the following is acceptable:
ALTER LOGIN jackv WITH password = ‘hsjo9Bxzh123’
OLD_PASSWORD = ‘7hsjs8jZbu’
I've had to change the
Ref:Jack Vamvas (http://www.sqlserver-dba.com)
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |