KB4089950 - Update to support partition elimination in query plans that have spatial indexes in SQL Server 2016 and 2017

Work anywhere from any device with Microsoft 365

Upgrade to Microsoft 365 to work anywhere with the latest features and updates.

Upgrade now


Consider the following scenario:

  • You have a partitioned table that contains a spatial index in Microsoft SQL Server 2016 and 2017.

  • You run a query that has a predicate by using a spatial operation on the partitioning column in such a way that the resulting data will only be located in a subset of all partitions.

In this scenario, SQL Server can typically use partition elimination in a query plan that only allows to read the data from relevant partitions. However, if a spatial index is used in the query plan, you may notice that SQL Server reads all partitions.


This update is included in the following cumulative updates for SQL Server:

       Cumulative Update 6 for SQL Server 2017

       Cumulative update 8 for SQL Server 2016 SP1

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Latest cumulative update for SQL Server 2017

Latest cumulative update for SQL Server 2016


Learn about the terminologythat Microsoft uses to describe software updates.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.