Link to home
Start Free TrialLog in
Avatar of Jim Metcalf
Jim MetcalfFlag for United States of America

asked on

can't login to sql management studio

I do not know the sa password.
I am logged in to the server as the local admin and smss is still not letting me in.
i thought you could always login to the smss with the local administrator account and then change the sa password.
how do i go about this...

1) i do not know sa password
2) i am logged into the server as the local adminstrator but it is not letting me login to smss with windows authentication

Please help!
Avatar of Deepak Chauhan
Deepak Chauhan
Flag of India image

You dont have SA password and you can not login by local admin credential. Now you have two option

first start sql server in single user mode and reset the SA password or Add your login in SQL server. This method require sql service restart.

steps:
1. Open SQL server configuration manager.
2. select sql server service on left hand.
3. Right click on SQL Server (instance name) -- for default instance it will be (MSSQLSERVER)
4. go to property > advance and check the startup parameter add ;-m at the very end of the startup parameter

close and restart the service

but before restart stop the SQL Server Agent service.

Now this sql instance will start in single user mode and you can connect it with local admin.


Second: Reset password by using PSEXEC utility add your login or reset SA password. (does not require SQL restart)
ASKER CERTIFIED SOLUTION
Avatar of Deepak Chauhan
Deepak Chauhan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jim Metcalf

ASKER

what does PSExec utility should be there mean?
its saying psexec is not recognized as an internal or external command
quick question... the first procedure used..... can I run this from a domain account that is in the local administrators group
Psexec utility is part of SYSInternal bundel, you can download it from here.

https://technet.microsoft.com/en-in/sysinternals/bb897553.aspx


@its saying psexec is not recognized as an internal or external command

because PSexec not installed there.

quick question... the first procedure used..... can I run this from a domain account that is in the local administrators group
 Yes you can run it
Is that worked.... or still you are in trouble.