When we ran Sql Server in a virtual machine we were able to use the following sql to drop in use databases.
use master
ALTER DATABASE [TargetDatabase] set single_user with rollback immediate;
Drop database [TargetDatabase]
According to the Managed Instance Documentation and our testing set single_user
is not supported. Is there an alternative way to drop in use databases?