During testing I deselected the sysadmin rights for my login and now can't re-add it (because I don't have sysadmin rights).
There are no other sysadmin accounts for the instance except the [sa]
account.
I was set up for just Windows Authentication so I hacked the LoginMode
in the registry to 2
so I could login as sa
using SQL Authentication. This does indeed set the login mode to Mixed
, however the sa
user is disabled by default and I can't re-enable it because I don't have sysadmin rights.
How do I enable the sa
login so I can get in and reassign the sysadmin to my normal account? Is there a registry setting for this too or is it stored in the master database?