systabstats

All databases

Description

systabstats contains one row for each clustered index, one row for each nonclustered index, one row for each table that has no clustered index, and one row for each partition.

Columns

The columns for systabstats are:

Name

Datatype

Description

indid

smallint

  • 0 =if a table

  • 1 = if a clustered index on an allpages-locked table

  • >1 = if a nonclustered index or a clustered index on a data-only-locked table

systabstats does not maintain statistics on text or image objects (255)

id

int

ID of table to which index belongs

activestatid

smallint

Reserved

indexheight

smallint

Height of the index; maintained if indid is greater than 1

leafcnt

unsigned int

Number of leaf pages in the index; maintained if indid is greater than 1

pagecnt

unsigned int

Number of pages in the table or index

rowcnt

float

Number of rows in the table; maintained for indid of 0 or 1

forwrowcnt

float

Number of forwarded rows; maintained for indid of 0 or 1

delrowcnt

float

Number of deleted rows

dpagecrcnt

float

Number of extent I/Os that need to be performed to read the entire table

ipagecrcnt

float

Number of extent I/Os that need to be performed to read the entire leaf level of a nonclustered index

drowcrcnt

float

Number of page I/Os that need to be performed to read an entire table

oamapgcnt

int

Number of OAM pages for the table, plus the number of allocation pages that store information about the table

extent0pgcnt

int

Count of pages that are on the same extent as the allocation page

datarowsize

float

Average size of the data row

leafrowsize

float

Average size of a leaf row for nonclustered indexes and clustered indexes data-only-locked tables

status

int

Internal system status information (see Table 1-27)

plljoindegree

int

The degree of parallelism used for a nested loop join operation, plljoindegree is the parallel scan degree of the table (whose systabstats has this field) that is the inner table in a nested loop join.

rslastoam

int

Last OAM page visited by a reorg reclaim_space or reorg compact command

rslastpage

int

Last data or leaf page visited by a reorg reclaim_space or reorg compact command

frlastoam

int

Last OAM page visited by the reorg forwarded_rows command

frlastpage

int

Last data page visited by the reorg forwarded_rows command

conopt_thld

smallint

Concurrency optimization threshold

plldegree

int16

Maximum degree of parallelism possible on table or index for data manipulation languages (DMLs). A value of 0 (zero) indicates a nonexistent maximum; the query processor configures maximum degree of parallelism.

emptypgcnt

unsigned int

Number of empty pages in extents allocated to the table or index

partitionid

int

Partition ID

warmcachepgcnt

unsigned int

statmoddate

datetime

Last time the row was flushed to disk

unusedpgcnt

unsigned int

Number of unused pages

oampagecnt

unsigned int

Number of allocation pages listed in the object allocation map

pioclmdata

real

pioclmindex

real

piocsmdata

real

piocsmindex

real

spare2

float

Reserved

spare4

float

Reserved

spare5

int

Spare field for alignment

The status bit for systabstats is:

Table 1-27: Status bit in the systabstats table status column

Decimal

Hex

Status

1

0x1

Statistics are the result of upgrade (not update statistics)

Indexes