• I think Andrew is correct. If you have that database selected in EM, or a query window open, there's a shared lock on the database.

    Select master, the right click your database and select detach (or run a script from master).