Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase ««12

how to reset SA password Expand / Collapse
Posted Wednesday, November 20, 2013 6:28 AM



Group: General Forum Members
Last Login: Today @ 7:35 AM
Points: 12,889, Visits: 31,844
i found this bat file from microsoft which is pretty much bullet proof:
it adds the current user as an administrator to the sql server that is prompted in the command line text.

this was a million times easier than getting the isntance in single user mode and all the other stuff involved in the original lik i provided.


--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1516022
Posted Friday, November 29, 2013 5:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, July 4, 2014 3:22 AM
Points: 6, Visits: 9
An SA password of MS SQL Server can be reset by using Windows Authentication. If Builtin/Administrator is present in the SQL Server, you can login with an ID which is member of Administrators group and reset SA password in SQL Server. Just follow the steps shown below:

Step 1: Log in to SQL server by using Windows Authentication.
Step 2: In Object Explorer, open Security folder > Logins folder.
Step 3: Right click on SA account and go to Properties.
Step 4: Type a new SQL SA password, and confirm it. Click OK to finish.

But if Basic Authentication is selected during SQL Server installation instead of Windows Authentication, then an SQL user cannot be able to follows the steps shown above. In such situation one should check some third-party SQL Password Recovery tools. I would recommend here SysInfoTools MS SQL Server Password Recovery here to reset a new password for SA login to unlock SQL Server. It allows users to reset password for both logins, individual as well as SA login.
Post #1518519
Posted Friday, November 29, 2013 5:12 PM



Group: General Forum Members
Last Login: Yesterday @ 8:06 PM
Points: 36,786, Visits: 31,243
"Basic Authentication"? Do you mean "SQL Server Authentication"?

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1518610
Posted Tuesday, April 22, 2014 5:50 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 4:51 AM
Points: 5, Visits: 11
Don't worry, you can still regain your SA password in SQL Server with little bit of technical help and the manual solution which i am going to provide, so you can solve your problem without much confusion.

Here is how you can do it with much ease and I am quite sure that this will be a helpful information for you. Visit this post to know the steps: recover SA password
Post #1563792
Posted Tuesday, May 20, 2014 12:57 AM


Group: General Forum Members
Last Login: Thursday, July 24, 2014 10:47 PM
Points: 22, Visits: 37
Change SQL Server Password Using SQL Script
Try this :-
Open the SQL Server Management Studio.
Open a New Query.

Copy, paste, and execute the following:

USE [master]

where NewPassword is the password you wish to use for the sa account.

SSMS Expert
Post #1572505
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse