Jump to content

SQL 2008 recover an account to the sysadmin role


Recommended Posts

Posted

Unfortunatly SQL was installed in windows authentication only and it is unknown which user has the sysadmin role. We have tried a few steps to add a user to the role, one of them being start in single user mode which we have done but when 'sqlcmd' is started it says an administrator is already connected.

 

As no account has the sysadmin role we can not change to windows and sql authentication which means the sa account is disabled.

Posted

How to verify and change the system administrator password in MSDE or SQL Server 2005 Express Edition

 

I'm not sure if this will also apply to SQL 2008, but you can always have a look. The KB above mentions a registry key which can be set to change the authentication mode to Mixed.

 

HKLM\Software\Microsoft\MSSqlserver\MSSqlServer\LoginMode

 

If that works you should be able to go in as sa and move on from there.

 

It is actually possible with SQL 2008 to install without any administrators, since the default rights are not assigned as they were in SQL 2005. You have to explicitly state any accounts you want to give admin rights.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...