After restoring a database from a production environment to a development environment (to get current data) I am trying to drop some production service accounts after which I will introduce their corresponding development service accounts. For some unknown reason the simple command DROP USER [userName] is taking exceedingly long.
The account has no special schema nor does it own any object nor is it dbo (although it once was). All its permissions are revoked and it has no references in either server_permissions or database_permissions.
When the command is invoked (drop user [userName]) it just goes off forever. After 1:40 (tha's an hour and 40 min) I killed it and it took maybe ten minutes to "roll back" whatever was rolling back (?). I just started another attempt and at the 23 minute mark this thing has racked up 27 million reads, 751 thousand writes, and 115 thousand physical reads in sp_whoisactive. It is as though the drop is going through every page in the database. What the heck.
Any idea on what the is taking so long?
- Edited by Lumley 15 hours 10 minutes ago clarifying time metric