Reply to Re: MDF File Still Exists After DROP TABLE

Your name:

Reply:


Posted by Erland Sommarskog on 11/05/05 16:31

Butaambala (brogers75@yahoo.com) writes:
> Using Enterprise Manager, I deleted from my database the only table
> that contained records (Right-Click on Table, Choose "Delete Table").
> My expectation was that the LARGE .mdf file would be reduced to minimal
> size (at least as small as the Northwind MDF). However, it's still 4+
> Gig in size!! (Northwind is 2.62 MB). This is a problem, bc I deleted
> the table in order to recapture hard drive space.
>
> NOTE: I already tried using Shrink Database in EM. This significantly
> reduced the size of the .mdf file from its original (i.e. pre-delete)
> size of 38 Gig to present size of 4 Gig.
>
> What can I do to further reduce the size of the MDF file?

I suggest that you look up DBCC SHRINKFILE in Books Online and try the
various options. I have been quite successful with giving a target size.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация