FIX: "The provided statistics stream is corrupt" when you run the "UPDATE STATISTICS" statement against a table in SQL Server 2008 R2 or SQL Server 2012

Article translations Article translations
Article ID: 2829845 - View products that this article applies to.
Microsoft distributes Microsoft SQL Server 2008 R2 and Microsoft SQL Server 2012 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included together with the previous SQL Server 2008 R2 or SQL Server 2012 fix release. 
Expand all | Collapse all

On This Page

Symptoms

Assume that you run the "UPDATE STATISTICS" statement against a table in Microsoft SQL Server 2008 R2 or SQL Server 2012. If the statistic is created on a very long column that has limited length, and the values in the column are nearly 8,000 characters in length, you may receive the following error message:

Msg 9105, Level 16, State 30, Line 1
The provided statistics stream is corrupt.

Resolution

The issue was first fixed in the following cumulative update of SQL Server.

Cumulative Update 11 for SQL Server 2008 R2 SP2

Cumulative update 4 for SQL Server 2012 SP1

Cumulative update 7 for SQL Server 2012

About cumulative updates for SQL Server

Collapse this imageExpand this image
assets folding start collapsed
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:
Collapse this imageExpand this image
assets folding end collapsed

Status

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

References

For more information about the "UPDATE STATISTICS" statement, go to the following MSDN website:
UPDATE STATISTICS (Transact-SQL)
For more information the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base:
935897 An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems
For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:
822499 Naming schema for Microsoft SQL Server software update packages
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 2829845 - Last Review: February 24, 2014 - Revision: 3.0
Applies to
  • Microsoft SQL Server 2008 R2 Service Pack 2, when used with:
    • Microsoft SQL Server 2008 R2 Developer
    • Microsoft SQL Server 2008 R2 Enterprise
    • Microsoft SQL Server 2008 R2 Standard
  • Microsoft SQL Server 2012 Enterprise
  • Microsoft SQL Server 2012 Business Intelligence
  • Microsoft SQL Server 2012 Developer
  • Microsoft SQL Server 2012 Standard
  • Microsoft SQL Server 2012 Web
  • Microsoft SQL Server 2012 Express
  • SQL Server 2012 Enterprise Core
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2829845

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