Clarification on SQL Server 2022 Compatibility Level Reduced to SQL Server 2016

Sankalp Panigrahi 0 Reputation points
2024-11-15T08:15:31.2633333+00:00

Title: Clarification on SQL Server 2022 Compatibility Level Reduced to SQL Server 2016

Description:

Dear Team,

We recently migrated our SQL Server environment from SQL Server 2016 to SQL Server 2022. Post-migration, our operations team reduced the database compatibility level of SQL Server 2022 to SQL Server 2016 (130). The intent behind this configuration change was to maintain application compatibility while leveraging the benefits of the newer SQL Server version.

Given this change, we seek clarification and guidance on the following points:

Supported Configuration:

Is running SQL Server 2022 with a reduced compatibility level of SQL Server 2016 (130) a supported configuration by Microsoft?

Impact on Supportability:

Since the extended support for SQL Server 2016 has ended, does lowering the compatibility level to 130 impact the supportability of the SQL Server 2022 instance? Specifically, would the SQL Server 2022 instance be considered unsupported due to this configuration change?

Technical and Performance Impacts:

Are there any known limitations, performance implications, or feature restrictions associated with using SQL Server 2022 in SQL Server 2016 compatibility mode?

Are there any recommendations or best practices from Microsoft for such scenarios?

We appreciate your assistance in addressing these queries as they are critical for ensuring compliance, optimal performance, and future planning of our SQL Server environment. Please let us know if you require any additional details or logs to expedite the resolution process.

Looking forward to your expert guidance.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,148 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 113.5K Reputation points MVP
    2024-11-15T21:33:25.62+00:00

    Is running SQL Server 2022 with a reduced compatibility level of SQL Server 2016 (130) a supported configuration by Microsoft?

    The supportability applies to the SQL Server version, not the compat level. Thus, using SQL 2022 with compat level 130 is supported.

    Are there any known limitations, performance implications, or feature restrictions associated with using SQL Server 2022 in SQL Server 2016 compatibility mode?

    Yes. When it comes to features, the new function generate_series will not be available to you. There maybe others, but this is the one I recall on the top of my head. But many new features will be available to you, for instance ledger tables and the function string_agg.

    When it comes to performance, you will run with the optimizer features of SQL 2016, so you will miss out on batch mode for row store, scalar function inlining and other optimizer enhancements. Thus, you will not get the full benefit of SQL 2022. Then again, if you are on Standard Edition, you would not have access to all optimizer enhancements even with compat level 160.


  2. ZoeHui-MSFT 38,621 Reputation points
    2024-11-18T02:57:20.8266667+00:00

    Hi @Sankalp Panigrahi,

    Specifically, would the SQL Server 2022 instance be considered unsupported due to this configuration change?

    It will still support for your SQL Server2022.

    For Differences between compatibility levels, you may check ALTER DATABASE (Transact-SQL) compatibility level.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.