Check out example codes for "Sql query to force the database to be drop". It will help you in understanding the concepts better.

Code Example 1

BY LOVE SINGH

USE master;
GO
ALTER DATABASE OnlineRestaurant2 
SET SINGLE_USER 
WITH ROLLBACK IMMEDIATE;
GO
DROP DATABASE OnlineRestaurant2;

Learn ReactJs, React Native from akashmittal.com