August 22, 2012 at 11:14 am
Hi experts,
how can i login into sql server, where i dont have sa password, dont know who had acces to that server,who is using it(no details at all).
Thanks,
August 22, 2012 at 11:17 am
you must have physical control of the server to regain control;
basically you end up starting the server in single user mode; in that mode, any local administrator gets promoted to a syslogin auto-magically; from there you can change the sa password, add yourself or other users as sysadmins, etc.
here's just a couple of many links on how to do it:
Lowell
August 22, 2012 at 11:34 am
August 22, 2012 at 12:38 pm
now i am in windows admin group restarted the service under singleusermode with -m; paramater
tried connecting with sqlcmd
c:\>sqlcmd -S pdba-cps
stil getting 18456 level 14 error
note:pdba-cps is servername
any suggestions plz help me
August 22, 2012 at 12:44 pm
Syntax for connecting with SQLCMD is C:\SQLCMD -S Servername\InstanceName
can you connect with management studio? If so, then add your account as sysadmin then restart the server normally, enjoy.
If you can only use SQLCMD then try:
USE [master]
GO
ALTER LOGIN [sa] WITH PASSWORD=N'newpassword'
GO
August 22, 2012 at 12:47 pm
i tried connecting with management studio
i am getting login failed for user 'abc\xyz' 18456 error
i dont have login in sql server before and even no body does 🙂
plz suggest me. am i typing something wrong to connect to server using sqlcmd?
August 22, 2012 at 12:53 pm
When you restart it in single user mode is there still applications or users that are connecting to the server? if so, then stop them. single user mode only allows one connection and if it starts and the application takes the one connection then you will not be able to connect.
August 22, 2012 at 12:54 pm
sorry for asking that basic question?
How can i control the users? dont know who are connecting.
August 22, 2012 at 1:39 pm
Possibly the easiest way, if you've got physical access / control to the server, is going to be to unplug it from the network until you're done. Bear in mind, doing this will prevent you from being able to access the network as well, so make sure anything you need is either saved on the server, or on a flash drive (if possible,) or printed out on paper...
Jason
August 22, 2012 at 2:47 pm
do we need to have builtin adminsitrators enabled on sql server side inorder to have windows local admins login as single user mode usinf -m; as startup parameter?
August 24, 2012 at 3:17 am
I met the same trouble with you, but i use Smartkey SQL Password Recovery to help reset sa password, I think it also helps you well.
August 24, 2012 at 3:23 am
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply