Take the 2-minute tour ×
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. It's 100% free, no registration required.

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
    
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
add comment

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

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

1 Answer

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
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
add comment

Your Answer

 
discard

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.