Solved

SQL Server Compression Estimate

Posted on 2013-12-18
4
260 Views
Last Modified: 2013-12-23
What I would like to do is be able to estimate what the size off all tables within a database after a compression is performed.  My objective is to utilize some script to determine whether it is an optimal time to actually perform the database compression.
0
Comment
Question by:Lenny Gray
4 Comments
 
LVL 19

Assisted Solution

by:jss1199
jss1199 earned 150 total points
ID: 39728175
For SQL 2008, I know of know script to do this, but Bob Taylor, a Microsoft PFE, put together a tool called SQL Server Compression Estimator.

For SQL 2012, you can use the sp_esitmate_data_compression stored procedure - http://technet.microsoft.com/en-us/library/cc280574.aspx

There is a 2008 sp that you can create, detailed at this Microsoft blog, but I prefer SSCE
0
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 100 total points
ID: 39728202
Use proc:

sp_estimate_data_compression_savings
0
 
LVL 10

Accepted Solution

by:
PadawanDBA earned 250 total points
ID: 39728299
I actually wrote a blog on how to estimate compression savings as a function of a balanced scorecard that helps you compare cost vs. benefit on compressing that index.  It can take a while to run (2.5 hours on my production 1.25 TB DB) and it certainly impacts performance.  http://geekswithblogs.net/padawandba/archive/2013/09/04/table-reallyhellipindex-compression-statistics-for-all-tables-in-database.aspx
0
 

Author Closing Comment

by:Lenny Gray
ID: 39736604
very hepful thank you
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question