Solved

SQL2012 - Sharepoint Config Log File Size

Posted on 2014-10-09
2
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…

726 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