How do I shrink my sharepoint databases? The log file has grown to be over 8 GB, though the actual data file is less than one.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suspect you mean you want to shrink the log file, not the database itself (there’s no point in shrinking that unless you have deleted tons of content).
In short, you want to run the following commands in SQL Manager or SQL Server Management Studio or the osql or sqlcmd tools (as appropriate to whichever version of the database you are running), as described here:
This page has a bunch more tips on preventing the log file from growing so big. The easiest one is to set the database recovery model to “Simple”.