Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Login failed for WINDOWS Administrator login. (Microsoft SQL Server, Error: 18456) Expand / Collapse
Author
Message
Posted Monday, August 30, 2010 9:19 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, August 30, 2010 11:11 PM
Points: 1, Visits: 3
Hi All,

I am using SQL server 2008. While adding SQL user i unknowingly deleted the SQL authentication user from SQL server. Now the problem is i can not login with Windows Authentication neither i can login as "sa" user as this user is disabled. Please suggest me how to get in to SQL server management studio. Database is up and running but i can not access the database any more after doing this blunder.

Please suggest me how to recover SQL instance,
Thank you.
Post #977395
Posted Monday, August 30, 2010 11:56 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, April 11, 2014 6:12 PM
Points: 197, Visits: 550
Just a guess, Try the DAC.

http://www.mssqltips.com/tip.asp?tip=1005
Post #977491
Posted Monday, August 30, 2010 12:08 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 4:31 PM
Points: 32,780, Visits: 14,941
DAC is what I'd use as well to re-enable this.






Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #977495
Posted Tuesday, August 31, 2010 1:48 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 6:48 AM
Points: 2,507, Visits: 3,645
Connect to sql server in single user mode..

net start mssqlserver /c /m /t3604

sqlcmd -E

create a new sql login and give SA right

Hope this might help
Post #977737
Posted Tuesday, August 31, 2010 3:49 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, April 08, 2014 5:47 AM
Points: 32, Visits: 150
I have a doubt here????????????????????
Sql Server does't allow you to dalete your own login when you are logged into the server.
then how come all this Magic happened.

if you were using any other id while u accidently deleted the admin id , that id should also have the admin rights to do so, so please try logging in with that id and recreate the login with admin rights.
Post #977795
Posted Tuesday, August 31, 2010 5:31 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 6:48 AM
Points: 2,507, Visits: 3,645
Excellent catch Ananth..

Will wait for his explanation
Post #977843
Posted Tuesday, August 31, 2010 11:59 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, April 14, 2014 10:47 PM
Points: 1,109, Visits: 347
I too agree with Ananth. Can u explain how u did that.
Post #978502
Posted Thursday, September 02, 2010 4:54 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, February 18, 2014 6:10 AM
Points: 350, Visits: 429
Dear Friends,

You can delete your own login when you are logged in 2008. It throws below error.

“Deleting server login does not delete the database user associated with logins and blaa blaa..….. ”

Once you close the existing connection to DB instance, you will not be able to login into SQL server instance as reported above

To overcome this issue, you can perform the below steps.
1. Add domain user on the MSSQL server box and assign him local admin privileges.
2. Login to DB server with the newly added domain user account
a. Stop the MSSQL server - NET STOP MSSQLSERVER
b. Start MSSQL server in single user mode NET START MSSQLSERVER /M
3. Disable MSSQL server agent (Else it will connect to MSSQL server and you won’t able to connect)
4. Login into MSSQL server management studio (with the user account recently created)
5. Enable SA account or recreate domain user which you deleted accidently.
6. Restart MSSQL server and Agent services
7. Log off and login with user ID which you accidently deleted.
8. Have fun


- SAMJI
If you marry one they will fight with you, If you marry 2 they will fight for you
Post #979413
Posted Monday, September 06, 2010 5:32 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 6:48 AM
Points: 2,507, Visits: 3,645
COOL_ICE,


U sure that u can delete an SQL login from SQL Server 2008??
Post #981050
Posted Monday, September 06, 2010 5:46 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, April 14, 2014 10:47 PM
Points: 1,109, Visits: 347
COOL_ICE,


I tried to delete SQL Login while i Loged in, but its not deleting. Can u tell me how u do this.

Thanks,
Omeswar Danwada.
Post #981056
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse