|
|
|
Forum 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.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, February 28, 2013 9:42 AM
Points: 189,
Visits: 509
|
|
Just a guess, Try the DAC.
http://www.mssqltips.com/tip.asp?tip=1005
|
|
|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Today @ 3:19 PM
Points: 31,526,
Visits: 13,863
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 9:39 AM
Points: 2,425,
Visits: 3,401
|
|
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
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, June 06, 2013 11:03 PM
Points: 31,
Visits: 143
|
|
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.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 9:39 AM
Points: 2,425,
Visits: 3,401
|
|
Excellent catch Ananth..
Will wait for his explanation
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 8:13 PM
Points: 1,109,
Visits: 296
|
|
I too agree with Ananth. Can u explain how u did that.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 12:41 AM
Points: 350,
Visits: 427
|
|
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
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 9:39 AM
Points: 2,425,
Visits: 3,401
|
|
COOL_ICE,
U sure that u can delete an SQL login from SQL Server 2008??
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 8:13 PM
Points: 1,109,
Visits: 296
|
|
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.
|
|
|
|