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

Прилага се за: SQL Server 2008 R2 DeveloperSQL Server 2008 R2 EnterpriseSQL Server 2008 R2 Standard

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:

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

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

Status


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