SQL Server 2022 was Microsoft's most cloud-connected on-premises release when it shipped, introducing native Azure Arc integration, expanded Linux support, intelligent query processing improvements, and in-database machine learning through Machine Learning Services (Python and R) and the T-SQL PREDICT function. It does not include vector search, vector data types, or in-database embedding functions - those arrived in SQL Server 2025. For organisations running on-premises infrastructure, 2022 represents a meaningful step forward, but understanding exactly which AI capabilities belong to which release matters before you plan your roadmap.
The challenge with any major SQL Server release is separating genuine capability improvements from marketing noise. This article breaks down what SQL Server 2022's AI features actually deliver, what belongs to 2025, and what the practical implications are for DBAs and IT managers managing real production environments.
What Are the New Features Introduced in SQL Server 2022?
SQL Server 2022 (version 16.x, released November 2022) introduced improvements across four main areas: hybrid cloud management, query processing intelligence, machine learning integration, and security. The headline additions are:
- Azure Arc integration for unified hybrid management
- Intelligent Query Processing (IQP) at compatibility level 160, including parameter sensitive plan optimisation, DOP feedback, and persistent memory grant feedback
- Machine Learning Services with Python and R via
sp_execute_external_script - Native model scoring with the T-SQL PREDICT function
- Ledger tables for tamper-evident audit history
- Always Encrypted with secure enclaves improvements
- Contained availability groups
- Linux support kept current through cumulative updates
Each of these is covered in detail below.
Azure Arc-Enabled SQL Server: Why It Matters for Hybrid Environments
The most operationally significant feature in SQL Server 2022 is Azure Arc integration. This allows you to register on-premises and multi-cloud SQL Server instances with Azure Arc, bringing them under a single management plane alongside your cloud resources.
In practical terms, this means you can:
- Apply Azure Policy to on-premises SQL Server instances
- Use Microsoft Defender for Cloud to assess security posture across hybrid environments
- Enable automatic patching and update management from a central console
- Access Microsoft Entra ID (formerly Azure Active Directory) authentication for on-premises instances without requiring full domain services
- Collect telemetry and performance data into Azure Monitor
For organisations managing SQL Server across multiple sites, cloud providers, or a mix of physical and virtual infrastructure, this is a genuine operational improvement. Before SQL Server 2022, managing patching compliance across a hybrid estate typically required third-party tooling or significant custom scripting. Arc-enabled management brings that under a Microsoft-native framework.
It's worth noting that Arc integration requires connectivity to Azure endpoints. Fully air-gapped environments or those with strict outbound firewall rules will need to evaluate whether this is feasible before treating it as a core part of their management strategy.
What Changed with Linux and Cross-Platform Support?
SQL Server on Linux has been available since SQL Server 2017, and 2022 continues to mature it. SQL Server 2022 runs on Red Hat Enterprise Linux, SUSE Linux Enterprise Server and Ubuntu, with newer distribution releases added through cumulative updates after launch.
Running SQL Server on Linux is no longer a niche configuration. Many production environments are doing it successfully, and Microsoft's investment in the Linux platform has continued with each release.
Container deployments also benefit. Microsoft publishes SQL Server 2022 Linux container images, which makes it practical to run SQL Server in containerised and Kubernetes workloads, provided storage and high availability are designed properly.
Intelligent Query Processing: What's New in SQL Server 2022?
SQL Server 2022 extends the Intelligent Query Processing (IQP) feature set introduced in SQL Server 2019. These are query optimiser improvements that activate at database compatibility level 160, the default for SQL Server 2022.
Key additions include:
Degree of Parallelism Feedback. The query optimiser can now adjust the degree of parallelism for repeated queries based on observed execution history. If a query is consistently running with excessive parallelism and causing contention, the optimiser learns to reduce it over time. This is particularly useful in environments where DOP settings are inconsistently configured.
Cardinality Estimation Feedback. The optimiser can now correct cardinality estimation errors for repeated queries by storing feedback in the Query Store. Over multiple executions, plans can improve without manual intervention.
Memory Grant Feedback Persistence. Memory grant feedback arrived in SQL Server 2017 (batch mode) and 2019 (row mode), but the learning was lost whenever a plan left the cache or the instance restarted. SQL Server 2022 persists it in the Query Store, so the improvements survive restarts and failovers.
Parameter Sensitive Plan Optimisation. This addresses a long-standing problem with parameter sniffing. Rather than caching a single plan for a parameterised query, SQL Server 2022 can create multiple plans for different parameter ranges and select the appropriate one at execution time.
These features don't replace the need for proper index design and query tuning. They do reduce the frequency of performance regressions from plan changes and make the optimiser more adaptive over time. Database compatibility level 160 is the main prerequisite, and the feedback features also need Query Store turned on. DOP feedback is off by default in SQL Server 2022 (ALTER DATABASE SCOPED CONFIGURATION SET DOP_FEEDBACK = ON enables it). Test your workload at level 160 before rolling it out to production.
Machine Learning and AI Capabilities in SQL Server 2022
How to Use AI in SQL Server 2022
SQL Server 2022 does not include a general-purpose AI engine embedded in the database engine itself. What it provides is a practical set of integration points for machine learning workloads:
-
Intelligent Query Processing improvements (described above) that use historical execution data to improve query plans. These are deterministic, rule-based improvements informed by observed statistics, not a neural network.
-
Machine Learning Services, which runs Python and R scripts inside SQL Server through
sp_execute_external_script(R arrived in SQL Server 2016, Python in 2017). From SQL Server 2022, Setup no longer installs the R and Python runtimes: you install the runtime and packages you want yourself. Common use cases include anomaly detection on time-series data, forecasting models, and text classification. -
Native scoring with PREDICT, a T-SQL function that scores a stored model without calling out to an external runtime. On boxed SQL Server it takes models trained with Microsoft's RevoScale libraries; scoring ONNX models with PREDICT is an Azure SQL Managed Instance and Azure Synapse feature. It is useful for operationalising a model without moving data out of the database.
For most organisations, the practical starting point is a model trained outside the database and scored close to the data, either through Machine Learning Services or with PREDICT. Training models directly in SQL Server is possible but is usually better handled in a dedicated ML environment.
Which AI Tool Is Best for SQL Server?
The right answer depends on your workload and version. For SQL Server 2022, the practical combination is to train models in a dedicated environment (Azure Machine Learning or your own Python stack) and score them in the database through Machine Learning Services, or call the model as a service from the application. Python via Machine Learning Services suits teams with data science capability who want the model close to the data.
If your requirement is vector search, semantic similarity, or retrieval-augmented generation (RAG) patterns, those capabilities are not available in SQL Server 2022. They require SQL Server 2025, which introduced native vector data types, vector indexing, and in-database embedding functions. If that's your roadmap, plan for an upgrade rather than trying to bolt vector search onto a 2022 instance.
What Is the Difference Between SQL Server 2022 and 2025?
This is the most important question for organisations planning their AI strategy right now.
SQL Server 2022 delivers:
- Intelligent Query Processing at compatibility level 160
- Machine Learning Services (Python, R)
- PREDICT function for native in-database model scoring
- Azure Arc hybrid management
- Ledger tables and security improvements
SQL Server 2025 adds:
- Native
vectordata type - Vector indexing and approximate nearest neighbour search
- In-database embedding functions
- Retrieval-Augmented Generation (RAG) support within T-SQL
- Deeper integration with Azure AI services
If your organisation is exploring AI-powered search, semantic similarity, or building applications that query against embedded content, SQL Server 2022 is not the right foundation. SQL Server 2025 was purpose-built for those patterns. For traditional ML scoring, anomaly detection, and forecasting, SQL Server 2022 remains a capable and supported platform.
Security Improvements Worth Knowing About
SQL Server 2022 includes several security enhancements that matter in production:
Ledger tables provide tamper-evident history for sensitive data. Rows in a ledger table generate cryptographic hashes stored in a blockchain-style structure, making it possible to verify that historical data has not been modified. This is relevant for financial records, audit trails, and compliance scenarios.
Microsoft Entra ID authentication for on-premises instances (via Arc) removes the dependency on SQL logins for environments that want to centralise identity management.
Always Encrypted with secure enclaves has been extended, allowing richer query operations on encrypted columns without decrypting data outside the enclave.
Contained availability groups simplify the management of logins and jobs in Always On environments by making the availability group self-contained rather than dependent on instance-level configuration.
SQL Server 2022 Support: What You Need to Know
SQL Server 2022 mainstream support runs until January 2028, with extended support continuing until January 2033. That's a solid runway for organisations making investment decisions today.
If you're running SQL Server 2016 or earlier, extended support ended in July 2026. Upgrading is now a necessity, not a choice.
If you're on SQL Server 2019, mainstream support ended in February 2025 and extended support runs to January 2030. The IQP improvements in 2022, particularly parameter sensitive plan optimisation and DOP feedback, are worth evaluating for workloads with complex parameterised queries or parallelism contention.
If you're on SQL Server 2017, mainstream support ended October 2022. Extended support runs to October 2027. You'd gain the full IQP feature set and Arc integration by moving to 2022.
Should You Upgrade to SQL Server 2022 or Go Straight to 2025?
The decision depends on your current version, licensing position, and which specific features are relevant to your workload.
For most organisations not yet on 2022, upgrading to 2022 first is the lower-risk path. The IQP improvements, Arc integration, and security features deliver real operational value. If your AI roadmap includes vector search or RAG patterns, factor SQL Server 2025 into your planning horizon now rather than treating 2022 as the final destination.
Any upgrade should include compatibility level testing. Running at database compatibility level 160 unlocks the IQP improvements, but it can also expose queries that relied on older optimiser behaviour. A structured test cycle against your actual workload, not just synthetic benchmarks, is essential before committing to production.
Key Takeaways
- SQL Server 2022's most operationally significant feature is Azure Arc integration, which enables unified management of hybrid SQL Server estates from a single control plane.
- Intelligent Query Processing improvements at compatibility level 160 include parameter sensitive plan optimisation and persistent memory grant feedback, both of which reduce common performance issues without manual intervention.
- Machine learning in SQL Server 2022 is practical for scoring models close to the data, through Machine Learning Services or native PREDICT, but in-database model training remains a niche use case for most production environments.
- Vector search, vector data types, and RAG support are SQL Server 2025 features. SQL Server 2022 does not have them. If those capabilities are on your roadmap, plan for an upgrade.
- SQL Server 2016 extended support ended July 2026. If you're still running it, upgrading is urgent.
- Any upgrade to SQL Server 2022 requires careful compatibility level testing. Features like IQP are only activated at level 160, and plan regressions are possible without proper pre-production validation.
If you're evaluating an upgrade to SQL Server 2022 or want an independent assessment of whether your current environment is ready, DBA Services provides SQL Server health checks and upgrade assessments for Australian organisations. Our team has managed SQL Server environments through multiple major version upgrades and can help you identify risks, plan the migration, and validate performance before go-live.
Get a SQL Server Health Check for $999
Find out what's really going on inside your SQL Server environment. We find critical misconfigurations in 97% of reviews, with a full 48-hour performance baseline and a prioritised action plan.
$999 ex-GST
normally $2,499
For your first SQL Server instance; additional instances are 2 hours each.