Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
Data compression
Data compression
Rate Topic
Display Mode
Topic Options
Author
Message
Tara-1044200
Tara-1044200
Posted Wednesday, April 07, 2010 3:55 PM
SSC Eights!
Group: General Forum Members
Last Login: 2 days ago @ 2:37 PM
Points: 983,
Visits: 2,924
Guys.. I have read that 2008 will compress data in the databases and also backup when compared to 2005. Can some one please let me know what is the exact % of data and backup files that compressess comparing it to 2005.
Post #899053
Jeff Moden
Jeff Moden
Posted Wednesday, April 07, 2010 7:18 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 8:21 PM
Points: 32,893,
Visits: 26,765
Tara-1044200 (4/7/2010)
Can some one please let me know what is the exact % of data and backup files that compressess comparing it to 2005.
No because, just like a ZIP file, it depends on the data.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #899189
Garadin
Garadin
Posted Wednesday, April 07, 2010 7:30 PM
SSCommitted
Group: General Forum Members
Last Login: Wednesday, November 07, 2012 4:08 PM
Points: 1,525,
Visits: 4,047
Most of the backups I've seen have had somewhere between 50-80% size reduction. That's just ballpark possible numbers though, as Jeff said, it depends on the Data.
The live data... I wouldn't even throw out a guess. If you have a sql 2008 developer or enterprise install to play with, you can use
this script
by Paul Nielsen to estimate the compression savings for your database.
Seth Phelabaum
Consistency is only a virtue if you're not a screwup.
Links
:
How to Post Sample Data
::
Running Totals
::
Tally Table
::
Cross Tabs/Pivots
::
String Concatenation
Post #899195
Tara-1044200
Tara-1044200
Posted Thursday, April 08, 2010 8:32 AM
SSC Eights!
Group: General Forum Members
Last Login: 2 days ago @ 2:37 PM
Points: 983,
Visits: 2,924
I understand it depends on that data, but i would like do some comparision which may not be accurate but give me an idea of hoe much disk space i will be saving when migrating from 2005 to 2008.
need a rough number to measure how much mdf files will be compressed and .BAK files.
Post #899620
GregoryF
GregoryF
Posted Thursday, April 08, 2010 8:36 AM
SSC Eights!
Group: General Forum Members
Last Login: Tuesday, April 23, 2013 3:40 AM
Points: 961,
Visits: 794
The only reasonably accurate way to estimate those numbers is in your test environment. There are many variables in getting a calculation. Are you storing bits, reals, int, varchars...each compress different
/* ----------------------------- */
Tochter aus Elysium, Wir betreten feuertrunken, Himmlische, dein Heiligtum!
Post #899628
vidya_pande
vidya_pande
Posted Thursday, April 08, 2010 8:46 AM
SSC Eights!
Group: General Forum Members
Last Login: Monday, June 04, 2012 5:00 PM
Points: 891,
Visits: 225
Regarding compressed tables/ data-
PAGE compression gives more compression ratio than ROW compression.
Page compression uses the actual logic for compression. Row compression happens only on fixed length data types.
Post #899642
Tara-1044200
Tara-1044200
Posted Thursday, April 08, 2010 9:02 AM
SSC Eights!
Group: General Forum Members
Last Login: 2 days ago @ 2:37 PM
Points: 983,
Visits: 2,924
most of our data is varchar, may be 90%
Post #899665
Stefan_G
Stefan_G
Posted Thursday, April 08, 2010 10:41 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, April 29, 2013 2:13 AM
Points: 275,
Visits: 750
The only way to know how much compression you would actually get is to actually try it on your data.
Install SQL 2008 developer somewhere
Import a sample of your largest tables into the 2008 database, use sp_estimate_data_compression_savings to check the compression you would actually get.
In my environment PAGE compression compressed my data with over 70%.
/SG
Post #899788
Deepak Kolapkar
Deepak Kolapkar
Posted Thursday, November 08, 2012 4:17 PM
Forum Newbie
Group: General Forum Members
Last Login: Thursday, March 28, 2013 10:55 AM
Points: 9,
Visits: 175
Hi
Did the table(s) that you did compression had any XML datatype columns in it?
I am been doing some prototype where I see that compression does saves a lot of space, but only when there is no XML column.
When a table have a XML column in it as major contributor to table size, the compression does not show any significant savings in data space.
Just wanted to know you if you had any such scenario of XML columns in your tables?
Thanks
Post #1382758
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.