Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.partitions

  No additional text.


Syntax
CREATE VIEW sys.partitions AS
	SELECT rs.rowsetid AS partition_id,
		rs.idmajor AS object_id,
		rs.idminor AS index_id,
		rs.numpart AS partition_number,
		rs.rowsetid AS hobt_id,
		isnull(ct.rows, rs.rcrows) AS rows,
		rs.fgidfs AS filestream_filegroup_id,
		cmprlevel AS data_compression,
		cl.name AS data_compression_desc
	FROM sys.sysrowsets rs OUTER APPLY OpenRowset(TABLE ALUCOUNT, rs.rowsetid, 0) ct
	LEFT JOIN sys.syspalvalues cl ON cl.class = 'CMPL' AND cl.value = cmprlevel

 
Last revision 2008RTM
See also

  sp_cdc_enable_table_internal (Procedure)
sp_changemergearticle (Procedure)
sp_changemergepublication (Procedure)
sp_estimate_data_compression_savings (Procedure)
sp_MSaddmergedynamicsnapshotjob (Procedure)
sp_MSaddupdatetrigger (Procedure)
sp_MSadd_mergereplcommand (Procedure)
sp_MSarticle_validation (Procedure)
sp_MSclear_dynamic_snapshot_location (Procedure)
sp_MScreatemergedynamicsnapshot (Procedure)
sp_MSdropmergearticle (Procedure)
sp_MSdrop_rladmin (Procedure)
sp_MSenumschemachange_100 (Procedure)
sp_MSenumschemachange_80 (Procedure)
sp_MSenumschemachange_80sp3 (Procedure)
sp_MSenumschemachange_90 (Procedure)
sp_MSgetpartitionsnapshotfolder (Procedure)
sp_MSpublication_validation (Procedure)
sp_MSrefreshdynamicsnapshotlocations (Procedure)
sp_MSrepl_changearticle (Procedure)
sp_MSsetup_partition_groups (Procedure)
sp_MStablespace (Procedure)
sp_MStable_validation (Procedure)
sp_MSvalidatearticle (Procedure)
sp_spaceused (Procedure)
sp_statistics_rowset (Procedure)
sp_statistics_rowset2 (Procedure)
sp_sysutility_ucp_remove (Procedure)
sp_table_validation (Procedure)
system_internals_partitions (View)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash