To reset password for an SQL Authentication login user, execute the following code:
Say for example, you forgot 'sa' password, then you can execute the below code to assign new password for 'sa' user:
EXEC SP_PASSWORD @new='900%sec', @loginame='sa'.
Now try connecting to SQL server with your 'sa' login and new password.
Say for example, you forgot 'sa' password, then you can execute the below code to assign new password for 'sa' user:
EXEC SP_PASSWORD @new='900%sec', @loginame='sa'.
Now try connecting to SQL server with your 'sa' login and new password.
No comments:
Post a Comment