May 2019
Intermediate to advanced
484 pages
11h 23m
English
The CardinalityEstimationModelVersion property indicates the version with which the plan was compiled. In this case we see 130, mapping to the CE released with SQL Server 2016. While this query is being executed in a SQL Server 2017 database engine, the compatibility level of the AdventureWorks database is set to 130, because it hasn't been upgraded since being restored from a SQL Server 2016 system where it was first created. Because the CE version is a main driver for the query-optimization process, it represents vital information when database professionals analyze query plans. For more information on CE and database compatibility, refer to Chapter 3, Mechanics of the Query Optimizer.
Read now
Unlock full access