Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Decreasing database size

Author  Topic 

alimuumin
Starting Member

7 Posts

Posted - 2005-09-12 : 04:13:02
I have a large database currently using up 5GB of space --
I deleted some records of a table and the free space is increased.

So the question is, if I delete some of the data from this table
will the database size decrease? Is there anything else I can do to
reduce the size of the database?
Thank you so very much for any help with this!


Regards Mr. Mumin
Thanks All,

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2005-09-12 : 05:15:41
check SHRINKFILE in BOL.

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page

mr_mist
Grunnio

1870 Posts

Posted - 2005-09-12 : 06:16:11
Why do you want to decrease the database size?

-------
Moo. :)
Go to Top of Page

alimuumin
Starting Member

7 Posts

Posted - 2005-09-13 : 01:11:51
The database is increasing day by day, and it grow up untill you get the error "you have Insufficient disk space" becouse the hard disk is full.


That is why i am trying to reduce the database size.

Regards Mr. Mumin
Thanks All,

Go to Top of Page

paulrandal
Yak with Vast SQL Skills

899 Posts

Posted - 2005-09-13 : 01:31:55
quote:
Originally posted by alimuumin

The database is increasing day by day, and it grow up untill you get the error "you have Insufficient disk space" becouse the hard disk is full.


That is why i am trying to reduce the database size.



Sounds like you need a bigger disk if you're continually running out of disk space. Shrinking is not the answer as the database will just grow again - so by shrinking you've wasted a bunch of resources and caused allocation fragmentation.

Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
(Legalese: This posting is provided "AS IS" with no warranties, and confers no rights.)
Go to Top of Page

mr_mist
Grunnio

1870 Posts

Posted - 2005-09-13 : 04:32:12
quote:
Originally posted by alimuumin

The database is increasing day by day, and it grow up untill you get the error "you have Insufficient disk space" becouse the hard disk is full.


That is why i am trying to reduce the database size.



That's because people are using the database and storing information in it.

As Paul says, it sounds like you need to add some more disk space to your server.

You cannot store information without using up space.

-------
Moo. :)
Go to Top of Page
   

- Advertisement -