Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
 sys.partitions (Transact-SQL)

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
Other versions are also available for the following:
SQL Server 2008 Books Online (June 2009)
sys.partitions (Transact-SQL)

Contains a row for each partition of all the tables and indexes in the database. All tables and indexes in SQL Server 2008 contain at least one partition, whether or not they are explicitly partitioned.

Column name Data type Description

partition_id

bigint

ID of the partition. Is unique within a database.

object_id

int

ID of the object to which this partition belongs. Every table or view is composed of at least one partition.

index_id

int

ID of the index within the object to which this partition belongs.

partition_number

int

1-based partition number within the owning index or heap. For non-partitioned tables and indexes, the value of this column is 1.

hobt_id

bigint

ID of the data heap or B-tree that contains the rows for this partition.

rows

bigint

Approximate number of rows in this partition.

data_compression

int

Indicates the state of compression for each partition:

0 = NONE

1 = ROW

2 = PAGE

ms175012.note(en-us,SQL.100).gifNote:
Full text indexes will be compressed in any edition of SQL Server.

data_compression_desc

nvarchar(60)

Indicates the state of compression for each partition. Possible values are NONE, ROW, and PAGE.

Requires membership in the public role. For more information, see Metadata Visibility Configuration.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker