Forgot SA password, would like to get in using Windows Authentication
-
6 martie 2012 23:10
Someone installed SQL Server but forgot the SA password. I have no idea what other sysadmin logins might have been setup. I am hoping that mixed mode was chosen for the logins so that we can also use Window logins. How can I check that it is running on mixed mode, rather than just SQL Server login mode?
Let's assume that it is running on mixed mode so that Windows logins are accepted. I added my Window login to the Administrator group and tried logging into SQL Server but that didn't work. The error was simply "Login failed for user <Domain\Login>. Would this be because SQL Server is accepting only SQL Server Authentication or because my Windows login is not in the right group?
Toate mesajele
-
6 martie 2012 23:23
Hi,
Is this SQL 2008? IF so there is only Windows auth or Windows and SQL auth modes so you should be ok. By default however the administrators group is *not* granted access to SQL. You can work around this by booting into single user mode however if you don't/can't restart SQL there is a work around which Argenis blogged here.
Sean Massey | Consultant, iUNITE
Feel free to contact me through My Blog, Twitter or Hire Me.
Please click the Mark as Answer button if a post solves your problem!- Propus ca răspuns de Marcelo Farinelli 7 martie 2012 00:12
- Marcat ca răspuns de D00linDalton 8 martie 2012 05:32
-
7 martie 2012 06:20
One more http://dimantdatabasesolutions.blogspot.com/2010/01/think-before-unchecking-sysadmin-rights.htmlBest Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/
- Marcat ca răspuns de D00linDalton 8 martie 2012 05:32
-
7 martie 2012 16:32
And the link to official documentation Troubleshooting: Connecting to SQL Server When System Administrators Are Locked OutRick Byham, Microsoft, SQL Server Books Online, Implies no warranty
- Marcat ca răspuns de D00linDalton 8 martie 2012 05:32
-
8 martie 2012 05:33Turns out Windows Authentication was on and Administrator login had sysadmin access so I was able to get in that way.