Lyra
Learn
AI Learning Platform
π Midnight
π Comfort
π₯ Ember
π Paper
β Contrast
Exams
Sign in to track progress
β Back to the lesson
Module 5 Β· Quiz
"Check Your Server Version First"
1. What SQL command is used to check the server version details including product version and edition?
SELECT SERVERPROPERTY('Edition')
EXEC sp_server_info
SELECT @@VERSION
SHOW VARIABLES
2. What is the compatibility level for SQL Server 2022?
150
160
140
130
3. Why is it important to check the database compatibility level?
It affects the server hardware configuration
It determines which features are available
It decides the SQL Server instance's performance
It defines the type of SQL Server license
4. What SQL command should be used to increase the compatibility level to 160 for a database?
SET COMPATIBILITY_LEVEL = 2022
ALTER DATABASE [YourDatabase] SET COMPATIBILITY_LEVEL = 160
EXEC sp_set_compatibility 160
UPDATE DATABASE SET COMPATIBILITY_LEVEL = 160
Submit answers
Continue: "Parameter Sniffing, Plainly" β
Review this lesson
Retake quiz