How to Perform MS SQL Server Password Recovery of SA and Other SQL Users with SQL Password Recovery

First check your login credential and after providing the credentials in MS SQL Server you are not able to access your database and gets a connection error message, then you need to follow the below mentioned steps., From a command prompt, enter one...

30 Steps 1 min read Advanced

Step-by-Step Guide

  1. Step 1: First check your login credential and after providing the credentials in MS SQL Server you are not able to access your database and gets a connection error message

    Now browse to the location where you have saved the copy of "master.mdf"

    select it and click "Open". , Select and click "OK". ,, The password associated with them are either categorized as "UNKNOWN" or "EMPTY"

    where UNKNOWN denotes that password exists for that user and is in encrypted form, while EMPTY means there is no password set for that particular user. ,,, Click "OK" thereafter. , Now you have to move the processed master.mdf and mastlog.ldf backup file to its original location so that original master.mdf and mastlog.ldf files gets replaced with these processed file. ,, to locate its location,On the Start menu, point to All Programs, Microsoft SQL Server 2005, Configuration Tools, and then click SQL Server Surface Area Configuration.The first page to appear is the SQL Server Surface Area Configuration start page.

    Click "Surface Area configuration for Services and Connections"

    Now click on "Start" button and when the service status changes from "Stopped" to "Running" just click on "OK" button.. ,, Don't forget to generate new password thereafter.
  2. Step 2: then you need to follow the below mentioned steps.

  3. Step 3: From a command prompt

  4. Step 4: enter one of the following commands

  5. Step 5: this will help to stop the default instance of SQL Server from running.

  6. Step 6: Now go to the location where your database is located

  7. Step 7: copy master.mdf and mastlog.ldf file and paste it in some other location

  8. Step 8: preferably in a different drive.

  9. Step 9: Now download the SQL Password Recovery software

  10. Step 10: install and run it on your system.

  11. Step 11: The second screen will prompt you to select the SQL Server version that you are using.

  12. Step 12: Wait and let the software scan your database

  13. Step 13: once the process gets completed click "OK".

  14. Step 14: Now the software will show you list of all users who are associated with that database.

  15. Step 15: Now make selection of all those user for whom you want to reset the password

  16. Step 16: once selected click "RESET".

  17. Step 17: The software will splash a message to create a backup of that database

  18. Step 18: so if you have already done that just click "yes"

  19. Step 19: otherwise go to step 3 of this article and see the backup process.

  20. Step 20: After performing the requisite operation the software then will greet user with a message that the password for select user has been reset successfully.

  21. Step 21: The reset process is almost completed.

  22. Step 22: Now if you try to login in SQL Server you will encounter with an error message stating that an error has occurred while establishing a connection to the server

  23. Step 23: if you go back and see in step 2 that we have stopped the instance of SQL Server

  24. Step 24: to resolve that we need to restart the service back again.

  25. Step 25: To resolve the issue go to "SQL Server surface area configuration".

  26. Step 26: The service status for SQL Service had been stopped we need to restart the service.

  27. Step 27: Now go back to SQL Server Authentication

  28. Step 28: select the user

  29. Step 29: leave the password field blank and then click "Connect".

  30. Step 30: Now you can access your database with full privileges.

Detailed Guide

Now browse to the location where you have saved the copy of "master.mdf"

select it and click "Open". , Select and click "OK". ,, The password associated with them are either categorized as "UNKNOWN" or "EMPTY"

where UNKNOWN denotes that password exists for that user and is in encrypted form, while EMPTY means there is no password set for that particular user. ,,, Click "OK" thereafter. , Now you have to move the processed master.mdf and mastlog.ldf backup file to its original location so that original master.mdf and mastlog.ldf files gets replaced with these processed file. ,, to locate its location,On the Start menu, point to All Programs, Microsoft SQL Server 2005, Configuration Tools, and then click SQL Server Surface Area Configuration.The first page to appear is the SQL Server Surface Area Configuration start page.

Click "Surface Area configuration for Services and Connections"

Now click on "Start" button and when the service status changes from "Stopped" to "Running" just click on "OK" button.. ,, Don't forget to generate new password thereafter.

About the Author

C

Christina Murphy

A passionate writer with expertise in crafts topics. Loves sharing practical knowledge.

45 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: