Solved

How can I unlock the sa account on SQL SERVER 2005?

Posted on 2013-11-18
1
530 Views
Last Modified: 2013-11-19
I have administrator privilege.  When I try to login into SQLSever 2005 Management Studio, it say the account is lock.  Could you give me the steps to unlock the sa account?

Do I use the SQL Server Surface Area tool?  How do I unlock the account using this tool?
0
Comment
Question by:cookiejar
1 Comment
 
LVL 36

Accepted Solution

by:
Mahesh earned 500 total points
ID: 39657261
Try below.
For unlocking SA, you just have to connect as a machine administrator to the server. The machine administrators are by default granted access to SQL Server. Once you connect as an administrator, you can issue:
 ALTER LOGIN sa WITH PASSWORD = 'new_password' UNLOCK
 OR
via the registry:
Default instance:
"HKEY_LOCAL_MACHINE\Software\Microsoft\MSSqlserver\MSSqlServer\LoginMode"
to 2 for mixed-mode or 1 for integrated.
After restarting the service you should be able to logon with a local administrator and reactivate the sa account again.
Thanks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question