SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Login failed for WINDOWS Administrator login. (Microsoft SQL Server, Error: 18456)


Login failed for WINDOWS Administrator login. (Microsoft SQL Server, Error: 18456)

Author
Message
bhavin.vyas
bhavin.vyas
SSC Rookie
SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)

Group: General Forum Members
Points: 37 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.
smallmoney
smallmoney
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1786 Visits: 591
Just a guess, Try the DAC.

http://www.mssqltips.com/tip.asp?tip=1005
Steve Jones
Steve Jones
SSC Guru
SSC Guru (223K reputation)SSC Guru (223K reputation)SSC Guru (223K reputation)SSC Guru (223K reputation)SSC Guru (223K reputation)SSC Guru (223K reputation)SSC Guru (223K reputation)SSC Guru (223K reputation)

Group: Administrators
Points: 223820 Visits: 19628
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
My Blog: www.voiceofthedba.com
VastSQL
VastSQL
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14136 Visits: 5363
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
ananthbhaskar
ananthbhaskar
SSC-Enthusiastic
SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)

Group: General Forum Members
Points: 135 Visits: 160
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.
VastSQL
VastSQL
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14136 Visits: 5363
Excellent catch Ananth..

Will wait for his explanation :-)
odanwada
odanwada
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1487 Visits: 438
I too agree with Ananth. Can u explain how u did that. :-)
COOL_ICE
COOL_ICE
SSC Eights!
SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)

Group: General Forum Members
Points: 824 Visits: 431
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 :-)
VastSQL
VastSQL
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14136 Visits: 5363
COOL_ICE,


U sure that u can delete an SQL login from SQL Server 2008??
odanwada
odanwada
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1487 Visits: 438
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search