﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Andy Warren / Article Discussions / Article Discussions by Author  / Running Out of Space / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 17 Jun 2013 23:07:49 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>&lt;P&gt;I've got a data mart that's growing by about 3 gig a day and it drives me nuts.  I've only got about 400g to work with (without paying my IT dept a huge amount for a bigger space... but that's another story)&lt;/P&gt;&lt;P&gt;Anyway, the entire system has be redesigned to save some space and increase speed.  Now, this is only for people looking to save space on massive data sets.  &lt;/P&gt;&lt;P&gt;We have inventory data, coming in each day  date-store-product... and 6 othe items cost,price,model_stock, on_hand, in transit, sales qty.&lt;/P&gt;&lt;P&gt;So, rather than keep a column with the date, we made a table for each day.  When running a query, we simply build the result set in a temp table as we go.  (35,000,000 recs a day)&lt;/P&gt;&lt;P&gt;That saved 35,000,000 date fields each day.  The next step was to rename the columns and append them to each day.  So, we ended up with store-product-mon_cost, tue_cost, wed_cost, etc...  That saved us from repeating the storeID and productID 36,000,000*6*2 times.  Believe it or not, it makes running a query on a full week of data VERY fast.  Oddly enough, the only difference has been in difficulty, not speed.  Now that we've got compiled search procedures, it's a snap.&lt;/P&gt;&lt;P&gt;In the end, even if we had more space, we ended up with a much more effective system - even being able to export entire weeks at a time to backup systems - &lt;/P&gt;&lt;P&gt;So, if you're running into the wall, remember that you can redesign some or all of the DB in an unconventional format, keeping the active portion in a standardized layout.  &lt;/P&gt;</description><pubDate>Fri, 14 Jul 2006 09:17:00 GMT</pubDate><dc:creator>dan-282380</dc:creator></item><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;In reference to the paper "Running Out of Space". I believe that like other databases and other systems the space of data files (data and log) must be forecast and never unlimited. That is to say, If I have a database for example a database with a size 20 Gb, if it continues growing it's a big problem. The analyst of application or responsible or the salesperson must know the size and its growth in a certain percent.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;o:p&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;I believe that the politic must go towards in tow ways:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;o:p&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="MARGIN-TOP: 0cm" type=1&gt;&lt;LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;To limit the maximum size.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;According to growth and the size we choose the growth in megabytes or by percent.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;o:p&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;In both cases is the same for the Data and Log.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;o:p&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;This is my opinion, it is not the opinion of my company it's only my opinion.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;o:p&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;Sincerely:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;o:p&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;&lt;o:p&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="mso-ansi-language: ES-TRAD"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;Ignacio-J. Santos Forner&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face="BdE Neue Helvetica 45 Light"&gt;&lt;SPAN style="mso-ansi-language: ES-TRAD"&gt;Madrid &lt;/SPAN&gt;&lt;SPAN lang=EN-GB style="mso-ansi-language: EN-GB"&gt;(Spain&lt;/SPAN&gt;&lt;SPAN style="mso-ansi-language: ES-TRAD"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description><pubDate>Wed, 20 Jul 2005 02:14:00 GMT</pubDate><dc:creator>Ignacio-J. Santos</dc:creator></item><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>Hello Andy,&lt;P&gt;I am a fan of your articles. However I found "Running Out of Space" a touch troubling. A disk or disk array runs best at 0 to 65% utilization. At 65% to 85% utilization we can expect a fall off in performance. At about 85% utilization we may expect a perceptible degradation in performance. So overall your article neglects the subject of disk performance. You may underestimate your influence if you think many D.B.A. don't pay attention to what you write. Further the suggestion to "keep several 1g files as placeholders on each drive that might run out of space." is questionable at best. Even placeholder files take up space and affect Disk performance. Given a choice between a CYA strategy that can affect performance or proactive maintenance I will choose the proactive approach rather than slow my customers and my system down.&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Barry O'Connell&lt;/P&gt;</description><pubDate>Tue, 19 Jul 2005 22:04:00 GMT</pubDate><dc:creator>BarryOC</dc:creator></item><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>&lt;P&gt;Andy,&lt;/P&gt;&lt;P&gt;This is a great advice about placeholders. &lt;/P&gt;&lt;P&gt;I also would like to mention Tempdb that may as well grow fast even with read-only reporting as I found out once.&lt;/P&gt;&lt;P&gt;Yelena&lt;/P&gt;</description><pubDate>Fri, 15 Jul 2005 09:44:00 GMT</pubDate><dc:creator>Yelena Varshal</dc:creator></item><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>&lt;P&gt;Several things from my experiences:&lt;/P&gt;&lt;P&gt;We had a database that measured 100G+, and that grew between 1-3G a week. I eventuall configured it to autogrow 10G at a time, which made it a bit easier to watch the volume fill up.&lt;/P&gt;&lt;P&gt;We bought database backup compression software (SQL LiteSpeed, of course). With that, it suddenly became possible to backup up that 100G turkey and store a backup or two on disk.&lt;/P&gt;&lt;P&gt;I built a utility that once a day tallys the size of the data and log files, as well as the amount of space used by data, indexes, and blobs within a database. It does this for every database on the server and logs it in a table. After a month we had a notion what was going on; after a quarter we could establish solid growth trends and patterns.&lt;/P&gt;&lt;P&gt;Most important lesson learned from Mr. Turkey: &lt;STRONG&gt;archive your data! &lt;/STRONG&gt;Once data stored in a databases is no longer relevant, get it out of there [purge, or archive and then purge]. Do this or your databases may grow like the blob and conquer the world. (&lt;STRIKE&gt;If&lt;/STRIKE&gt; When management will say "we can't delete that, we need it", tell them how much it will cost in hard drives x Raid x [Disk Arrays or SANs to house it all]. Sadly, they won't listen, and there really is no joy in saying "I told you so".&lt;/P&gt;&lt;P&gt;   Philip&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Thu, 14 Jul 2005 13:57:00 GMT</pubDate><dc:creator>Philip Kelley</dc:creator></item><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>&lt;P&gt;I have jobs that tell me what is going on.  I have one that runs every hour that checks disk space and will both page and e-mail me when free space goes below a threshold that I set.  I have another one that runs every 2 hours and checks database and tlog files for file growth and will both page and e-mail me when growth happens.  &lt;/P&gt;&lt;P&gt;I have left my defaults on and have carefully set the size of my databases to where I am not expecting them to grow(at least not much).  If I get notified of growth then I need to ask the business owners what is going on to make sure that I have planned for their growth needs.&lt;/P&gt;</description><pubDate>Thu, 14 Jul 2005 08:51:00 GMT</pubDate><dc:creator>Lori B</dc:creator></item><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>&lt;P&gt;&lt;EM&gt;&amp;gt; Say you've got a 100g drive with a 40g database and for purposes of discussion the backup is also 40g, leaving you a cool 20g free. Add 10% to the db driving the size up to 44g, you now only have 12g free after backup - and that's not counting your log backups.&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;Just a thought... one might consider using a different example, if the drive itself fails and is lost what of the backup?&lt;/P&gt;</description><pubDate>Thu, 14 Jul 2005 08:00:00 GMT</pubDate><dc:creator>DrChips</dc:creator></item><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>&lt;P&gt;Here is MY running out of space scenerio:&lt;/P&gt;&lt;P&gt;Over the 4th of July holiday weekend, my SAN ran out of space for backups. Becasue of this, the transaction logs began to grow. Eventually, they filled up the hard drives. Once this happened, DTS packages began to fail, due to the log files being full. When the DTS packages failed that load the databases, the file server that receives files from an FTP server filled up. &lt;/P&gt;&lt;P&gt;As you can see, we MUST monitor the backup device to ensure it has plenty of space! I have talked with the Vice President of our IT group about this situation, but he is deaf to my claims. I tell him databases ony grow; they do not shrink. We must plan ahead for growth!&lt;/P&gt;</description><pubDate>Thu, 14 Jul 2005 07:12:00 GMT</pubDate><dc:creator>csdunaway</dc:creator></item><item><title>RE: Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>I've run into this so many times, especially the Maint Plan failing because it couldn't do integrity checks because a "user" was in the database. It then won't delete the old backups. I ended up putting the script below in a scheduled job that runs every 6 hours.  Since then I haven't had a big problem with it.&lt;pre&gt;declare @file_name varchar(100)declare FileList cursor for    select  physical_device_name    from msdb.dbo.BackupMediaFamily bmf     left join msdb.dbo.BackupSet bs on bs.media_set_id = bmf.media_set_id    WHERE  datediff(hh,bs.backup_start_date,getdate()) &gt; 48     and datediff(hh,bs.backup_start_date,getdate()) &lt; 168     and physical_device_name not like '%BEXVDI%'    ORDER BY bs.backup_start_date descOPEN FileListFETCH NEXT FROM FileList INTO @file_name WHILE (@@fetch_status &lt;&gt; -1)   BEGIN    --print @file_name    SELECT @file_name = 'DEL ' + @file_name    EXEC XP_CMDSHELL @file_name    FETCH NEXT FROM FileList INTO @file_name  ENDDEALLOCATE FileList&lt;/pre&gt;Solved a lot of my major headaches. &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;</description><pubDate>Thu, 14 Jul 2005 06:36:00 GMT</pubDate><dc:creator>Jim P.</dc:creator></item><item><title>Running Out of Space</title><link>http://www.sqlservercentral.com/Forums/Topic198268-29-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/awarren/runningoutofspace.asp"&gt;http://www.sqlservercentral.com/columnists/awarren/runningoutofspace.asp&lt;/A&gt;</description><pubDate>Thu, 07 Jul 2005 12:00:00 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item></channel></rss>