Symptoms

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.

Resolution

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

References

Learn about the terminologythat Microsoft uses to describe software updates.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.