FIX: An access violation occurs when you query the missing indexes DMVs in SQL Server 2008 R2

Article translations Article translations
Article ID: 2784686 - View products that this article applies to.
Expand all | Collapse all

On This Page

Symptoms

Consider the following scenario:
  • You delete a column from a table in Microsoft SQL Server 2008 R2.
  • There is at least one missing index in this column.
  • You try to run some queries against the missing index dynamic management views (DMVs), or there is a background purging task that queries the missing index DMVs.
In this scenario, an access violation may occur.

Resolution

Cumulative update information

Cumulative update 4 for SQL Server 2008 R2 Service Pack 2 (SP2)

The fix for this issue was first released in Cumulative Update 4. For more information about how to obtain this cumulative update package for SQL Server 2008 R2 Service Pack 2, click the following article number to view the article in the Microsoft Knowledge Base:
2777358 Cumulative update package 4 for SQL Server 2008 R2 Service Pack 2
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 Service Pack 2 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:
2730301 The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 Service Pack 2 was released

Workaround

To work around this issue, you must disable the missing indexes feature by using the -x parameter for the sqlservr command prompt utility when you start an instance of SQL Server 2008 R2.


More information

For more information about the missing indexes feature, go to the following MSDN website:

About the Missing Indexes Feature
For more information about how to use sqlservr application, go to the following MSDN website:

How to use sqlservr application
For more information about how to use SQL Server service startup options, go to the following MSDN website:
How to use SQL Server service startup options

Status

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

Properties

Article ID: 2784686 - Last Review: December 17, 2012 - Revision: 1.0
Applies to
  • Microsoft SQL Server 2008 R2 Developer
  • Microsoft SQL Server 2008 R2 Enterprise
  • Microsoft SQL Server 2008 R2 Standard
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2784686

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com