Check out example codes for "sql server manager close connection". It will help you in understanding the concepts better.
Code Example 1
//This should disconnect everyone else, and leave you as the only user: alter database YourDb set single_user with rollback immediate //Note: Don't forget alter database YourDb set MULTI_USER
Learn ReactJs, React Native from akashmittal.com