What is difference between:
1. Changing database compatibility directly (without putting DB in single user mode)
ALTER
DATABASE
[WideWorldImporters]
SET
COMPATIBILITY_LEVEL
= 100
GO
2. Changing database compatibility putting DB in single user mode:
- Set the database to single user access mode by using
ALTER DATABASE SET SINGLE_USER - Change the compatibility level of the database.
ALTER DATABASE [WideWorldImporters] SET COMPATIBILITY_LEVEL = 140 - Put the database in multiuser access mode by using
ALTER DATABASE SET MULTI_USER