Solved

SQL2012 - Sharepoint Config Log File Size

Posted on 2014-10-09
2
359 Views
Last Modified: 2014-10-21
Hi,
I have a client that is running a SharePoint database on a server2008r2. Sql is 2012.
The Sharepoint_Config transaction log file ldf is huge (120gb). The mdf file is only 200mb.

I have been researching the shrink file command, or shrink file via the SQL Server management Studio.
 I have ran a 'DBCC SQLPERF(logspace)' and the Log file space used  is only 2.7 % on this database.

Can anyone advise me this is safe to do? and is there anything I need to do before running shrinkfile on the ldf file? except taking a full backup of the database.

Thanks, Colin
0
Comment
Question by:VitalNetworkSolutions
2 Comments
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 40370815
It's safe to shrink it. This Log file bloat is quite common.

There are the below methods, or DBCC Shrinkfile...

http://www.inetnj.com/?page_id=305

http://shareyourpoint.wordpress.com/2013/03/22/how-to-manage-large-sharepoint-configuration-database-logfile/
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 40372044
If you have not run any Transaction Log backups, you will not be able to shrink the Transaction Log.  What I suggest:
1. Start doing frequent Transaction Log backups or if you are unable to do that then
2. Change the Recovery Model from Full to Simple and lose the ability to do point-in-time restores.

Only do a DBCC SHRINKFILE as a last resort as it is detrimental to the health of your Transaction Log and therefore your database.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Renaming multiple file extensions using Powershell 4 17
Slow SQL query 12 27
Stored procedure 23 24
Update in Sql 7 8
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

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

16 Experts available now in Live!

Get 1:1 Help Now