Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Sql Server Management Studio: cannot log in

Author  Topic 

henryvuong
Starting Member

8 Posts

Posted - 2014-05-20 : 18:18:07
I was using Sql Server Management Studio 2008 R2. While being logged in, I accidentally deleted the user "Station-2\Henry". After logging out, I could not log in again with Windows Authentication mode. The error message was "Login failed for user 'Station-2\Henry'. Microsoft SQL Server, Error: 18456"

"Station-2" is my computer name and "Henry" is my computer administrator name. I guess because I deleted the administrator name in Sql Server engine, it does not grant me the access to the server any more. The problem is I don't have any username and password to log in using SQL Server Authentication. What should I do now?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-05-20 : 19:44:41
If there are no other sysadmins, then reinstall/restore.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

jeffw8713
Aged Yak Warrior

819 Posts

Posted - 2014-05-27 : 13:20:14
http://msdn.microsoft.com/en-us/library/dd207004(v=sql.105).aspx
Go to Top of Page
   

- Advertisement -