Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Query to Identify Compressed Tables?

$
0
0

Is there a query to identify which tables are compressed? 

Isn't the following query limited to just the partitioned tables that are compressed? 

      SELECT DISTINCT NAME
      FROM   sysobjects x
      WHERE  x.id IN (SELECT OBJECT_ID
                      FROM   sys.partitions
                      WHERE  data_compression <> 0)


Viewing all articles
Browse latest Browse all 8428


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>