2

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.

migrated from stackoverflow.com Oct 14 '13 at 0:20

This question came from our site for professional and enthusiast programmers.

  • 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 '13 at 12:54
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. – Randy Minder Sep 20 '13 at 14:43
  • 1
    @Randy: You can use that stored procedure to do what you want: use the parameter @data_compression = 'NONE'. – Jon Seigel Oct 14 '13 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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