BUG: sp_spaceused on SYSLOGS May Return Negative ValuesLast reviewed: April 28, 1997Article ID: Q97551 |
The information in this article applies to:
SYMPTOMSThe stored procedure sp_spaceused may return negative values for the unused and index values when run against SYSLOGS.
CAUSEThe data value returned by sp_spaceused is an approximate indicator of how many 2 (kilobyte) KB pages are currently being used by SYSLOGS. The reserved value is the number of pages that have been allocated to SYSLOGS and are unavailable for use by other tables. Reserved pages may or may not be actually used. Data pages are those pages that are reserved and are also actually used. For tables other than SYSLOGS, the reserved value should always be greater than the data value; however, SYSLOGS changes so often that this statistic is not maintained in real time for performance reasons. The unused space may be negative because it is computed by subtracting data pages from reserved pages, and those values may not be up-to-date. The index_size value should always be zero (0) because SYSLOGS has no index. Therefore, the dpages and used values should always be equal. The index_size value may be negative because it is calculated by subtracting data from sum of used pages and those values may not be current.
WORKAROUNDRun DBCC CHECKTABLE(SYSLOGS) to get the up-to-date value for the current size of SYSLOGS. The figure returned by DBCC CHECKTABLE is in terms of 2 KB pages and needs to be multiplied by two to get the size in kilobytes.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2 for OS/2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: sp_spaceused syslogs
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |