FIX: DBCC SHOW_STATISTICS Truncates Output for Fixed-Length Numeric Types (296189)
The information in this article applies to:
- Microsoft SQL Server 7.0 Service Pack 3
This article was previously published under Q296189
BUG #: 101576 (SQLBUG_70)
SYMPTOMS
Running DBCC SHOW_STATISTICS for an index or statistics on a fixed-length numeric type (such as tinyint, smallint, integer, real, float, money, smallmoney, numeric, datetime, or smalldatetime) may display truncated histogram steps. The display is truncated at the number of bytes used to store the value. For example, if the histogram is on an integer column, and a histogram step boundary falls on the value of 123456789, SHOW_STATISTICS shows the value as 1234, because an integer uses 4 bytes of storage.
CAUSE
The code incorrectly uses the number of bytes needed to store the base datatype as the length at which to terminate the string representation of the value.
RESOLUTIONTo resolve this problem, obtain the latest service pack for Microsoft SQL Server 7.0. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
301511 INF: How to Obtain the Latest SQL Server 7.0 Service Pack
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft SQL Server 7.0 Service Pack 4.
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbbug kbfix KB296189 |
---|
|