0

After customizing the role settings (changed the 'public' role, just tick everything to Deny, then I set it back), all of my users cannot login, except to give them the sysadmin permission. So, I want to reset the role settings, is there any way to do that?

2
  • Define "customizing the role settings". What are they doing that needs sysadmin?!
    – OMG Ponies
    Sep 15, 2010 at 2:37
  • @OMG Ponies, I just added the definition.
    – silent
    Sep 15, 2010 at 2:41

1 Answer 1

0

At the database level, you'd drop and recreate the user

At the server level: un-deny everyone or drop/recreate logins

You can also use something like to create another query to fix everything

SELECT
    'REVOKE DENY ' + name + 'Stuff'
FROM
    sys.server_principals
...

However, I've never managed to lock all my users out like this so you'll have to play with this query to get it to do what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.