How to recover SA password on Microsoft SQL Server 2008 R2 _ Gert Van Gorp.pdf
May 29, 2016 | Author: satheeshbabun | Category: N/A
Short Description
Download How to recover SA password on Microsoft SQL Server 2008 R2 _ Gert Van Gorp.pdf...
Description
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp About
Contact
Gert Van Gorp a blog about virtualization
Home
VMware
About
Contact
May 26, 2011
100
Subscribe
How to recover SA password on Microsoft SQL Server 2008 R2 When you are using MS SQL Server in mixed mode, it is very important that you know your SA password. There can be different reasons you lost the password
Search
Recent Posts VMware Support Assistant browser
Person who installed the SQL Server knows the password but has left the building.
incompatibility
You did not write down the password in your password file
Convert RDM to VMDK
Password file is lost
Allow Virtual machines with duplicate MAC
…
address on vSphere 5.5 Where to find VMware version information
Steps to recover the SA password
How long can an ESXi host run?
Start SQL Server Configuration Manager
Recent Tweets There are no recent tweets.
Categories Select Category
Tags Stop the SQL services
Acronis Appliance Backup Certification Cloud Datastore diskpart
ESXi Expand Increase
Infrastructure lab labcloud Launch
Management Mobile device Plugin PowerCLI RDM Reset Passw ord resize Support Assistant Update Manager Upgrade Uptime VCA
vCenter
vCops VDR Version Virtual
Machine VMDK
VMware
vmw orld
vSphere vSphere5 VSS
Edit the properties of the SQL Service
Login Username
Password
Remember Me
Login →
Change the startup parameters of the SQL service by adding a –m; in front of the existing parameters
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
1/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp
Start the SQL services. These are now running in Single User Mode. Start CMD on tthe SQL server Start the SQLCMD command. Now you will see following screen
Now we create a new user. Enter following commands CREATE LOGIN recovery WITH PASSWORD = ‘TopSecret 1′ (Remember SQL server has default strong password policy Go Now this user is created Now we grant the user a SYSADMIN roles using the same SQLCMD window. sp_addsrvrolemember ‘recovery’, ‘sysadmin’ go Stop the SQL service again Change the SQL service properties back to the default settings
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
2/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp Start the SQL service again and use the new created login (recovery in my example) Go via the security panel to the properties and change the password of the SA account.
Now write down the new SA password. Share and Enjoy:
Read more from General, Security, SQL
100 Comments
Post a comment
very Well It works!thank you for sharing your information in such a good way!!!
bahare Sep 19 2011
reply
This was EXACTLY what I needed. Thanks much!
Craig Martin Feb 10 2012
reply
Thank you thank you thank you
Stephen Miller Mar 1 2012
reply
I also find other 3 methods to reset forgotten SA password, learn more details at: http://www.toppassword.com/knowledge/changesqlserverpassword.html Sancho Mar 4 2012
reply
Nice job !!! Thank you !!! *****
Victor Mar 10 2012
reply
Super! You made my day!
Fredrik Mar 15 2012
reply
great how to, Thanks a lot
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
3/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp
Adnan Hassan Mar 28 2012
reply
Thanks a lot .. it worked for me .. saved my lot of time for reinstallation
Gaurav Mar 29 2012
reply
Very very useful,, this resolves my issue,,, I was very much happy,,,,,,, Harish Mar 30 2012
Thanks a lot for the guys who have found this… reply
This works (as you knew it would) Thank you.
JRH Apr 5 2012
reply
Thank you the above article is very helpfull
Ismat Ayash Apr 11 2012
reply
This article saved a lot of time for me. Thank you
raju Apr 13 2012
reply
Thanks for the step by step details, this helped a lot with the default instance. Would you know how to make it do it for a named instance? I have searched and searched T
by no one seems to be plagued by a named instance. So maybe I’m missing
Apr 14 2012
something really obvious? reply
Hey, I was having the same problem but finally found a solution, now Diego R. Apr 25 2012
I just can’t login, i’ve been able to create the user but somehow I keep getting a Login failed for user ‘recovery’ (Even when copying user and password straight from the console statement) sqlcmdS .\ or sqlcmd S \ e.g. sqlcmdS HOMEPC\SQLSERVER2 More about it at http://msdn.microsoft.com/enus/library/ms188247.aspx reply
It’s not Working properly……It’s getting Occur Sqlcmd: Error:Sqlserver Native Client 10.0 login Timeout Expaired… Anji varikuti Apr 21 2012
How to solve it…
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
4/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp reply
Hi, Can you send me the steps you followed and where it went gertvangorp Apr 24 2012
wrong?? Thanks Gert reply
Had to use: SQLCMD E S ‘server_name\db_name’ Dez Nov 14 2012
to solve “Sqlcmd: Error:Sqlserver Native Client 10.0 login Timeout Expired” error. Worked terrific after that, thank you! reply
Thank you – just what I was looking for and very easy to follow.
Kaz Apr 23 2012
reply
Wanted to say BIG THANK YOU!!! for super easy instruction that work well. Unlike other site they lure people using techniques that not going to work and giving us Dennis
option to purchased software ect.
May 15 2012
reply
thanks a lot for the info. it save lots my time as I was planning to do reinstall itself
Sanjay May 26 2012
reply
These instructions are the best. Thank you.
Paul Jun 11 2012
reply
yesss .i can solve my issue. Thanks very very much
Heby Joseph Jun 14 2012
reply
Bless your cotton socks! THANK YOU!!!! tristan Jun 22 2012
reply
Merci, merci, merci, merci, merci, merci !
Vali Jun 27 2012
reply
Beautiful work,definitely we can try for this tool to recovery the password.Many thanks
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
5/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp for well information and share.
Jonathan Robort Jul 30 2012
reply
Thank you so much! After searching and searching online, this was exactly what I was looking for. I guess most people don’t understand what it means to lose the SQL MonsterCable Aug 8 2012
SA password. Thanks again! reply
Great – Thanks!
Jeep Aug 28 2012
reply
Thank you very much.
modtanoy Sep 5 2012
reply
Nice job !!! Thank you !!!
Saleh Khadempour Sep 11 2012
reply
This works for me . Thanks
Ashok Tewatia Sep 19 2012
reply
Thank you! Had to use: Cornel
sqlcmd S
Sep 28 2012
othewise it would not connect to any instance. Also if you cut and paste from this web page, retype the single quotes to avoid syntax errors. reply
You are great!!!! Very Well It works!thank you for sharing your information in such a good way!!! Pedro Sep 29 2012
reply
Thank you so much !!!! All the best to you in your life man !! Fabien Oct 4 2012
reply
This is great, well written step by step instruction. THANK YOU. One more unrelated question, how did you make the screen shot looks like a broken paper edge? Thank XiaoYu
you again.
Oct 5 2012
reply
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
6/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp Thanks, you saved my day!
Roberto Oct 12 2012
reply
Respect! Thanks a lot!
Lothar Geisinger Oct 22 2012
reply
Perfect! You made my day! Thanks!
Sam Oct 26 2012
reply
Worked perfectly and saved the day! Thank you!
Hacked Oct 29 2012
reply
Thanks for the awesome solution! Just a few tips: Derek Nov 2 2012
Since you’re in singleuser mode, you may receive the following error: “Login failed for user ‘[user]’. Reason: Server is in single user mode. Only one administrator can connect at this time. (Microsoft SQL Server, Error: 18461). To resolve this, make sure you stop SSAS and SSRS and SQL Server Agent for the instance that you’re working with. You can then get in. Also, if you have direct access to the server, you’ll be able to login to SQL Management Studio (if installed) and then do your management through the GUI. For my case, I needed to get my network account to authenticate on my local PC, which was being denied because someone else installed SQL on my machine. I was part of the Administrators group, so it let me take it over. Happy coding! reply
Thanks a million times Derek. This one worked so well for me as I had the same problem. Teezee Aug 27 2013
Cheers reply
Problem solved, thank You very much!
AldoArmisi Nov 6 2012
reply
Worked amazingly. Cheers!
Matt Nov 7 2012
reply
You need to run command prompt with administrative rights.
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
7/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp
Rafik Berzi Nov 14 2012
reply
@Rafik Berzi Thank you so much, I was getting authentication failures even Jimmy
though I was logged in with admin credentials. This got me in.
Sep 10 2013
reply
Thanks a lot brow. It’s worked..Great Tutorial
Sunan Nov 15 2012
reply
Nice post mate, helped me out just now (inherited a developer machine with no idea what the local password was!) Tahir Nov 26 2012
reply
It works. a few advise Jerry Nov 28 2012
1. this password recovery is for single login mode, not mixed mode(as mentioned at very begining). if you SQL setup in mixed mode, you can reset your sa password using OS admin account. 2.Derek’s tip very useful. I had same situation. reply
Brillant, that was a life saver !
tskeggs Dec 14 2012
reply
It’s working fine.Thanks..
Rajesh Dec 15 2012
reply
After adding m; the “SQLCMD” command worked for me when I started only the “SQL Server (MSSQLSERVER)” service. SQLn00b Dec 17 2012
reply
Hi, It was so complete and useful for me. Ali Jan 9 2013
Thanks a lot reply
Superb!!!!!!!! Thanks from my heart…………..
Suday Kumar Ghosh Jan 20 2013
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
8/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp reply
This solution also works for SQL Server 2012. Thanks a lot!
Saskia Jan 21 2013
reply
Thank you man. Its great.
Kumaresan Feb 11 2013
reply
Looks like this does not work for 2012
bummer – or I am missing something?
Shane Feb 27 2013
reply
not sure, not yet tested on SQL 2012 Gert gertvangorp Aug 16 2013
reply
I’m really enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more enjoyable for me to come Jodi
here and visit more often. Did you hire out a developer to create your theme?
Mar 13 2013
Fantastic work! reply
I am using Traction PRO as theme Gert gertvangorp Aug 16 2013
reply
tnx a lot
Amin Reza Mar 17 2013
reply
Awesome. Cheers!
Jortx Mar 21 2013
reply
thanks a lot!!!!!!!!!!
kannan.g Mar 26 2013
reply
Thank you, very effective with easy to follw instructions!
Stevek Apr 3 2013
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
9/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp reply
Nearly 2 years later and it’s still helping people! Thanks.
Andy Apr 24 2013
reply
Thank you very Much
Rakesh Kumar Singh May 22 2013
reply
In the line sp_addsrvrolemember ‘recovery’, ‘sysadmin’ I had to write sp_addsrvrolemember “recovery”, “sysadmin” pele May 29 2013
even so it works very well reply
sp_addsrvrolemember ‘recovery’, ‘sysadmin’ also threw an error, but the following worked for me: William Clement Dec 17 2013
sp_addsrvrolemember recovery, sysadmin Thanks again to the writer! reply
Thanks!
Ali Azsari Jun 19 2013
reply
Great, it’s really helpful thanks
paresh Jun 27 2013
reply
Saved my ass…
Kake Jul 8 2013
reply
Wow! This could not have been written any better! Thanks so much!
Sheila Jul 17 2013
reply
Thanks a million, this fixed things right up.
fondspararna Jul 26 2013
reply
You’re my hero ! Thank you so much ! Christiane
And it is very very clear. Very good job.
Aug 1 2013
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
10/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp reply
Hi excellent website! Does running a blog similar to this take a great deal of work? I’ve virtually no knowledge of programming but I had been hoping to start best natural cures for depression Aug 7 2013
my own blog in the near future. Anyway, if you have any ideas or techniques for new blog owners please share. I know this is off topic however I just wanted to ask. Many thanks! reply
It Workzz !! Cheers
Perry Aug 8 2013
reply
Worked great Thank you !
Florin Chirilas Aug 14 2013
reply
This saved me a lot of trouble!!! Thanks for sharing. Graham Aug 20 2013
reply
Excellent, thank you
Juan Aug 20 2013
reply
thanx a lot.
Teezee Aug 27 2013
reply
it’s work , Thank so much
Remez Aug 29 2013
reply
Thanks, You’re my hero ! masi Aug 31 2013
reply
With SQL Server 2008 R2 Express I had to use: sqlcmd S [servername]\[instance] MB Sep 19 2013
This was even for the default instance sqlexpress. reply
Good job
Mirek Sep 26 2013
reply
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
11/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp YOU ARE THE MAN!!! saved me
kemal kayalı Sep 28 2013
reply
Great Job. Thank you!
Ronaldo Bicca Oct 4 2013
reply
Thanks a lot, you save me
Rajaonary Oct 9 2013
reply
Thanks a lot!!!!!
shahp Oct 15 2013
reply
This didn’t work for me. It tells me “Alter failed for Login ‘sa’ glenn wong Oct 17 2013
An exception occurred while executing a TransactSQL statement or batch. Cannot set a credential for principal ‘sa’ (Microsoft SQL Server, Error:15535) reply
found a solution, had to do the following: select the “Map To Credential” check box on the General tab of glenn wong Oct 17 2013
the Login Properties – sa dialog box. that got rid of my error reply
Thanks a lot, very clearly explained
Devi Oct 23 2013
reply
thank you! still helps in 2013 fipsinator Oct 30 2013
reply
Worked but only after doing something else, not mentioned in the article above… Starting SQLCMD without any other parameters only starts it in the default instance of Ross Oct 31 2013
SQL, if you are trying to create an SA account in a named instance (e.g. sqlServer\sql2008), you need to connect SQLCMD to that named instance. Mine for example, is \SQL2008 so to connect SQLCMD to that, I had to open the cmd prompt and write: SQLCMD S .\SQL2008 reply
Thanks! Very, very helpful!
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
12/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp
Peter Nov 1 2013
reply
The instructions are very clear and straight forward. Thanks!
Khalid Nov 21 2013
reply
Excellent article. Really got me out of a bind. thank you.
Andrew Dec 11 2013
reply
thanks, it works like a charm
Rudy Dec 19 2013
reply
this process is very complicated i have another solution to recover the SQL Server Password which is highly reliable and robust the SQL Password recovery software. Enrique
You can use its demo version which ensured you how it perform riskfree password
Jan 17 2014
recovery process. http://www.sqlmdfviewer.org/sqlpasswordrecoveryfreeware.html reply
I do not want to change the SQL SA password as many applications explicitly depend on this password such as Sun finance system , Ifor etc. Daljit Bhana Jun 17 2014
Is there a tool that can show the the password ! Dal reply
There no tool that can do this
gertvangorp Sep 5 2014
reply
Superb! Very simple and straightforward to follow.
sid Aug 1 2014
reply
Trackbacks & Pingbacks 1. Lost SA Password for SQL 2008 R2 | Squishnet
Leave a comment
Name
required
Email
required
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
13/14
7/17/2015
How to recover SA password on Microsoft SQL Server 2008 R2 | Gert Van Gorp Website Comment
Note: HTML is allowed. Your email address will never be published. Subscribe to comments
Submit Comment
About
Pages
Did you know you can write your own about section just
About
like this one? It's really easy. Navigate to Appearance →
Contact
Search
Search
Widgets and create a new Text Widget. Now move it into the "Footer Left" sidebar.
Copyright © 2015 Gert Van Gorp. All rights reserved.
http://vconsult.be/2011/05/26/recoversapasswordmicrosoftsqlserver2008r2/
Traction Theme by The Theme Foundry
14/14
View more...
Comments