An Azure relational database service.
Hi Julie
you can absolutely run your databases at compatibility level 160 on an Azure SQL Managed Instance that’s using the Always-up-to-date update policy. Managed Instance always hosts the latest stable SQL engine bits, so as soon as SQL Server 2022 (v16.x) bits are live, you can use all of the SQL 2022 compatibility-level features—even under the Always-up-to-date policy.
As for differences versus a Managed Instance using the “SQL Server 2022” update policy:
• Compatibility behavior (T-SQL syntax, query optimizer features, etc.) is driven solely by the database’s compatibility level, so setting it to 160 behaves the same in both environments. • The only real distinction is in how and when engine patches and hotfixes are applied: – Always-up-to-date rolls engine and OS fixes out continuously (you get bug-fixes and performance improvements as soon as they’re ready). – The SQL Server 2022 policy groups updates into scheduled CUs aligned with SQL Server on-premises releases.
Everything you rely on from compatibility level 160—new optimizer enhancements, T-SQL capabilities, metadata features—works identically in either policy.
References
- Resolve SQL version issues (“Azure SQL Database always on latest engine; use compatibility_level to gauge feature support”) https://docs.microsoft.com/azure/azure-sql/database/sql-database-paas-overview
- View or change database compatibility level https://docs.microsoft.com/sql/relational-databases/databases/view-or-change-the-compatibility-level-of-a-database?view=sql-server-ver15
- Understanding Azure SQL Database version numbers (“version 12.x on Azure != on-prem; compatibility level is what matters”) https://docs.microsoft.com/azure/azure-sql/database/sql-database-paas-overview
- Compatibility certification for Azure SQL Managed Instance https://docs.microsoft.com/sql/database-engine/install-windows/compatibility-certification?view=sql-server-ver17#compatibility-levels-and-database-engine-upgrades