Solved

SQL Server SA Account

Posted on 2014-03-20
7
288 Views
Last Modified: 2014-03-21
I have  SQL server 2012 that only has the "sa" account as administrator and the account is locked.

Can someone tell me how to go about unlocking the "sa" account???
0
Comment
Question by:TonyEF
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 500 total points
ID: 39944015
Can someone tell me how to go about unlocking the "sa" account???
ALTER LOGIN sa WITH PASSWORD = 'sapasswordgoeshere' UNLOCK
0
 

Author Comment

by:TonyEF
ID: 39944188
Anthony

Do I run this on a command prompt screen?
0
 
LVL 12

Expert Comment

by:Tony303
ID: 39944221
In SQL Server Management Studio
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 7

Expert Comment

by:Anoo S Pillai
ID: 39944236
if you are an admin on the server, the following procedure can be followed to unlock sa account

http://technet.microsoft.com/en-us/library/dd207004.aspx
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 39944238
As indicated it is best to use SSMS, however you can do it from the command prompt if you use SQLCmd as in:
sqlcmd -S YourServerName -E -Q "ALTER LOGIN sa WITH PASSWORD = 'sapasswordgoeshere' UNLOCK"

Open in new window

0
 
LVL 7

Expert Comment

by:Anoo S Pillai
ID: 39944246
My previous comment is applicable only if , you don't have any other sysadmin account available to connect to SQL server.  If you have other sysadmin accounts, Anothony's solutions should work.
0
 

Author Closing Comment

by:TonyEF
ID: 39945706
Thank you for the assistance...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

860 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