FIX: Access violation occurs when you run CHECKTABLE or CHECKDB against a table that has persisted computed columns in SQL Server 2008 R2 or SQL Server 2012

Applies to: SQL Server 2008 R2 Service Pack 2SQL Server 2008 R2 DeveloperSQL Server 2008 R2 Enterprise More

Symptoms


Consider the following scenario:
  • You have Microsoft SQL Server 2008 R2 or SQL Server 2012 installed on a computer.
  • You mark one or more computed columns as "persisted."
  • You run a DBCC CHECKDB against the table with these columns.
In this scenario, an access violation occurs.

Resolution


This issue is resolved in Microsoft SQL Server 2012 Service Pack 2 (SP2).

Service pack information for SQL Server 2012

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2012. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2755533 How to obtain the latest service pack for SQL Server 2012

Cumulative Update 10 for SQL Server 2012 SP1

Cumulative Update 12 for SQL Server 2008 R2 SP2

Status


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