SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 How to decrease database file size
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PingTheServer
Starting Member

28 Posts

Posted - 09/18/2012 :  15:41:46  Show Profile  Reply with Quote
I have several databases in the 400GB range and the server is getting low on space. Im not an actual DBA but im the last resort.

Im trying to buy some time with the current hardware and i was hoping i could compress/shrink the database to do so. When i look up shrinkdb, every thing says its horrible and dont do it.

Is there an effective way to compress or otherwise make the database primary/secondary file sizes smaller?

tkizer
Almighty SQL Goddess

USA
35007 Posts

Posted - 09/18/2012 :  15:53:29  Show Profile  Visit tkizer's Homepage  Reply with Quote
Is there free space inside the database? Have the indexes been rebuilt? Have you looked into page/data compression?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sequelkid
Starting Member

India
3 Posts

Posted - 09/19/2012 :  03:42:08  Show Profile  Reply with Quote
Which SQL Server edition and version you are using. In case you are using SQL Server 2008 Enterprise Edition you can enable backup compression which will give back some free disk space for your databases to grow further

SEQUELKID
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
1770 Posts

Posted - 09/19/2012 :  10:35:48  Show Profile  Visit jackv's Homepage  Reply with Quote
Once you've established the free space and also feel confident that INSERTS won't occur soon that require the space, consider doing a on-off shrink.
Before you try that step - consider doing some housekeeping on the server? Are there any other large files taking up space , on the same drives as where the data files are hosted?
Can you move anything around? Even within the database itself , are there tmp tables which could be dropped etc. ?



Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000