0

One of our developers with blanket privilege on a database wanted to create a regular user mapped to a login when what he mistakenly created was a user without login and now I'm unable to remove the user. DROP USER XX command runs forever with no result nor an error. The user doesn't own any schemas as well. How can I remove this user?
Thank you

asked Oct 18, 2016 at 7:44
9
  • what you are getting the error? Commented Oct 18, 2016 at 7:59
  • "command runs forever with no result nor an error" Commented Oct 18, 2016 at 8:01
  • Do you have "ALTER ANY USER permission on the database of that user". Commented Oct 18, 2016 at 8:05
  • I hope this isn't a production db that a developer has 'blanket' permissions on. Hearing that anywhere makes me choke on my morning coffee. Commented Oct 18, 2016 at 8:32
  • I'm SA. It's UAT. Commented Oct 18, 2016 at 10:28

1 Answer 1

-2

Check for any blocking SPIDs when you have issued the DROP USER XXX command.

Then kill.

PhilTM
32k10 gold badges86 silver badges108 bronze badges
answered Oct 18, 2016 at 8:46

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.