Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Microsoft distributes Microsoft SQL Server 2008 R2 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and security fixes that were included with the previous SQL Server 2008 R2 fix release.

Symptoms

Consider the following scenario:

  • You run an instance of SQL Server 2008 R2 or SQL Server 2012 on a computer that has more than one processor.

  • You run a parallel query against a table that has a large amount of spatial data.

In this scenario, SQL Server might take a long time to run the query.

Note that the issue might occur in one of the following situations.

  • You set the MAXDOP query hint option to a value that is greater than 2.

  • You set the Max Degree of Parallelism option to a value that is greater than 2 in the server configuration.

Cause

This issue occurs because the spatial index isn't used in the query plan.

Resolution

For SQL Server 2012, enable the trace flag 4199 at start up or in a user session.

Cumulative update information

SQL Server 2008 R2 Service Pack 1

The fix for this issue was first released in Cumulative Update 3 for SQL Server 2008 R2 Service Pack 1. For more information about how to obtain this cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:

2591748 Cumulative Update package 3 for SQL Server 2008 R2 Service Pack 1

Note that because the builds are cumulative, each new fix release contains all the hotfixes and security fixes that were included with the previous SQL Server 2008 R2 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

2567616 The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 Service Pack 1 was released.

SQL Server 2008 R2

The fix for this issue was first released in the cumulative update package 9. For more information about how to obtain this cumulative update package for SQL Server 2008 R2, click the following article number to view the article in the Microsoft Knowledge Base:

2567713 Cumulative update package 9 for SQL Server 2008 R2

Note that because the builds are cumulative, each new fix release contains all the hotfixes and security fixes that were included with the previous SQL Server 2008 R2 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

981356 The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 was released.

Note: After applying the cumulative updates, you must enable the trace flag 4199 (TF 4199) for the fix to be effective. For more information, see KB974006 - SQL Server query optimizer hotfix trace flag 4199 servicing model (microsoft.com).

Workaround

To work around this issue, use one of the following methods:

  • Use the spatial index hint option in the query.

  • Disable the parallel execution plan option for the query.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

For more information about parallel query processing, visit the following MSDN website:

General information about parallel query processing

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.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×