-- Single user ALTER DATABASE [Database Name] SET SINGLE_USER WITH ROLLBACK IMMEDIATE -- Multi user ALTER DATABASE [Database Name] SET MULTI_USER