We’re having an issue where doing a DROP USER in a single database (SQL Server 2008 R2) takes a very long time. It seems to fluctuate, but takes anywhere from 15 to 30 seconds. There aren’t any DDL triggers acting on user-related events.
To make matters stranger, this only happens in a single database on the server, on the other databases (larger, with identical DDL triggers), the DROP USER command is instantaneous.
Have anyone else encountered something similar, and if you did, were you able to track down the cause?
To resurrect an ancient thread; my coworker figured it out. The problem was related to a running service broker. The following statement fixed the issue: