Solved

Database Size is not reducing after empty Recycle bin in SharePoint 2007.

Posted on 2012-12-26
3
1,143 Views
Last Modified: 2012-12-28
Hi, in one site collection I have deleted recycle bin data even deleted from secondary recycle bin also but mdf file of that site collection database is still showing the same size, it is not reducing.

Kindly suggest.
0
Comment
Question by:Minesh Shah
3 Comments
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 38722889
the .mdf file of sql server database will not shrink just because you delete data in the tables, and not even if you just dropped tables.

you would need to explicitly request to shrink the data files (or even the full database), which you can do in sql server using the GUI or t-SQL, but normally, you just won't.
the exception is if your database files had grown just "out of control", so you have to reclaim disk space.

normally, you would just keep the file sizes as are. sql server will internally reuse the space.
0
 
LVL 13

Accepted Solution

by:
Yagya Shree earned 250 total points
ID: 38723458
Hi MineSharePoint,

Angel is right on pointing out the fact that the database will not reclaim the space even if you cleanup you recycle bin in sharepoint.

From the sharepoint, point of view, you have to manually perform Db shrinking for which you can follow methods mentioned in the below post

Shrinking a Database
http://msdn.microsoft.com/en-us/library/ms189080(v=sql.105).aspx
0
 
LVL 10

Author Closing Comment

by:Minesh Shah
ID: 38726325
thanks, now it is redused by srinking
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now