I foolishly and accidently deleted windows admin from SQL Server 2008 Logins. Now I cannot connect to Sql Server Management Studio. Why is it even possible to delete this login if you cannot login to sql server afterwards ?
I have admin right to this box.
Please advsise before I kill myself for being so stupid 🙂
Do you mean that you removed the #1 Windows user or the #2 ‘sa’ user?
In #1, you can use ‘sa’, if you just remember the password you’ve given at installation. Or you can create a new admin user to Windows and use Windows Authentication with that user login.
In #2 I think it’s more difficult, if you have not allowed Windows authentication (I don’t remember if you can leave it out, though)
Edit: A quick Google search gave this:
http://blogs.msdn.com/b/raulga/archive/2007/07/12/disaster-recovery-what-to-do-when-the-sa-account-password-is-lost-in-sql-server-2005.aspx