O'Reilly logo

Microsoft® SQL Server 2008 R2 Unleashed by Alex T. Silverstein, Chris Gallelli, Paul Bertucci, Ray Rankins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Evaluating Page Compression

Before choosing to implement page compression, you should determine if the overhead of page compression will provide sufficient benefit in space savings. To determine how changing the compression state will affect a table or an index, you can use the SQL Server 2008 sp_estimate_data_compression_savings stored procedure, which is available only in the editions of SQL Server that support data compression. This stored procedure evaluates the effects of compression by sampling up to 5,000 pages in the table and creating a copy of these 5,000 pages of the table in tempdb, performing the compression, and then using the sample to estimate the overall size for the table after compression. The syntax for sp_estimate_data_compression_savings ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required