Having executed a DB deploy (from a VS SQL Server database project) on a local database, which failed, the database has been left in a state where it has single user mode left o
Try the below commands
First run these three commands
USE [master] SET DEADLOCK_PRIORITY HIGH exec sp_dboption MyDBName, 'single user', 'FALSE';
Second run these two commands
ALTER DATABASE MyDBName SET MULTI_USER WITH NO_WAIT ALTER DATABASE MyDBName SET MULTI_USER WITH ROLLBACK IMMEDIATE