July 4, 2005 at 11:18 pm
The following shows the result for running the showcontig on my MS SQL 2000 database
dbcc showcontig(Article) WITH ALL_INDEXES
DBCC SHOWCONTIG scanning 'Article' table...
Table: 'Article' (734625660); index ID: 1, database ID: 7
TABLE level scan performed.
- Pages Scanned................................: 52113
- Extents Scanned..............................: 6530
- Extent Switches..............................: 6531
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.74% [6515:6532]
- Logical Scan Fragmentation ..................: 0.20%
- Extent Scan Fragmentation ...................: 0.60%
- Avg. Bytes Free per Page.....................: 69.1
- Avg. Page Density (full).....................: 99.15%
DBCC SHOWCONTIG scanning 'Article' table...
Table: 'Article' (734625660); index ID: 2, database ID: 7
LEAF level scan performed.
- Pages Scanned................................: 7421
- Extents Scanned..............................: 930
- Extent Switches..............................: 929
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.78% [928:930]
- Logical Scan Fragmentation ..................: 12.51%
- Extent Scan Fragmentation ...................: 2.90%
- Avg. Bytes Free per Page.....................: 2.8
- Avg. Page Density (full).....................: 99.97%
DBCC SHOWCONTIG scanning 'Article' table...
Table: 'Article' (734625660); index ID: 3, database ID: 7
LEAF level scan performed.
- Pages Scanned................................: 7474
- Extents Scanned..............................: 939
- Extent Switches..............................: 1030
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 90.69% [935:1031]
- Logical Scan Fragmentation ..................: 0.71%
- Extent Scan Fragmentation ...................: 0.32%
- Avg. Bytes Free per Page.....................: 60.2
- Avg. Page Density (full).....................: 99.26%
DBCC SHOWCONTIG scanning 'Article' table...
Table: 'Article' (734625660); index ID: 4, database ID: 7
LEAF level scan performed.
- Pages Scanned................................: 7437
- Extents Scanned..............................: 936
- Extent Switches..............................: 960
- Avg. Pages per Extent........................: 7.9
- Scan Density [Best Count:Actual Count].......: 96.77% [930:961]
- Logical Scan Fragmentation ..................: 0.22%
- Extent Scan Fragmentation ...................: 0.53%
- Avg. Bytes Free per Page.....................: 20.2
- Avg. Page Density (full).....................: 99.75%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Every time I do a select on this table, it shows duplicate record. But when I execute the DBCC DBREINDEX on this table and do the same select again. The result is ok.
Please advice on how to solve this problem?
July 4, 2005 at 11:43 pm
Every time I do a select on this table, it shows duplicate record. But when I execute the DBCC DBREINDEX on this table and do the same select again. The result is ok.
Sounds strange, possibly a bug. I encountered and had a bug fixed where a clustered index containing a bit column caused duplicate rows to appear, but I do not know if reindexing would remove those duplicates. After you reindex, does the duplicate appear again later and you need to reindex again?
Can you produce a small repro?
July 5, 2005 at 12:39 am
After reindex, there won't be any duplicate record using the same select. However, after updating and inserting a few records and do the same select again, it shows duplicate record again and I have do a reindexing again.
July 27, 2005 at 7:31 am
July 27, 2005 at 8:08 am
Same advice again: Can you produce a repro? If so, then open a case with MS Support and record it as a bug.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply