We're using SQL Server 2012 and have page compression turned on for a number of our larger tables. Is there a way we can determine the compression ratio we're getting? We'd like to be able to determine the benefits of compression.

  • Can you afford creating non-compressed copies of compressed tables? By doing that, you can easily find the uncompressed size. Sure, it's unelegant but could work.
    – vonPryz
    Oct 14, 2013 at 12:54

1 Answer 1


How about sp_estimate_data_compression_savings?

It allows you to estimate the gain from compression BEFORE you compress the table, but it's quite accurate.

  • Yeah, I saw that but that is just an estimate. I wanted the actual compression ratio, if it's available. And, besides, we've already enabled compression on many of our tables. Sep 20, 2013 at 14:43
  • 2
    @Randy: You can use that stored procedure to do what you want: use the parameter @data_compression = 'NONE'.
    – Jon Seigel
    Oct 14, 2013 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.