Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi There
My sql server windows authentication User is disabled
and I forgot the sa password
and I dont have other users
What should I do?
Posted

Hello This will help you.

1)Go to start Menu
2)Go to SqlServer 2005
3)SqlServer Configuration Manager
4)You will see SqlServer Services.... Cick on it
5)at the right side you will see SqlServer (MS SqlServer) if its running Right click and Stop this again RC and go to properties
6)go to Startup Parameters-----see the location
7)Start the SQL services. These are now running in Single User Mode.
8)go to Start menu type CMD
9)c:\Users\Administrators>sqlcmd

CREATE LOGIN recovery WITH PASSWORD = ‘TopSecret 1′ (Remember SQL server has default strong password policy
 
Share this answer
 
Comments
Mah boubeh 15-Jan-13 5:49am    
Thanks a lot
but I try this and unfortunatelly
When I try to run sqlcmd I Have some Error that said windows account is disabled

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900