Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from 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
up vote 1 down vote accepted

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.

share|improve this answer
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
@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 posting your answer, you agree to the privacy policy and terms of service.

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