While the SQL Server data-tier application (%Name;) was being uninstalled, the database (%DatabaseName;) could not be detached ...