{"id":160,"date":"2015-11-24T15:59:40","date_gmt":"2015-11-24T22:59:40","guid":{"rendered":"http:\/\/www.cmadix.com\/?p=160"},"modified":"2016-04-13T02:33:48","modified_gmt":"2016-04-13T08:33:48","slug":"reduce-sharepoint-services-log-ldf-files","status":"publish","type":"post","link":"https:\/\/www.stormbreaker.tech\/?p=160","title":{"rendered":"Reduce Sharepoint Services log.ldf Files"},"content":{"rendered":"<p>I had the problem that Sharepoint_Config-ID-.log.ldf grew really BIG (14GB) on a content database of 1 GB!<br \/>\nThis caused issues where the log was taking up all the available free space on the server, not OK!<\/p>\n<p>You can solve this problem by using \u201cShrink\u201d command in the MS SQL Server Management Studio Express<\/p>\n<p>First you need to connect to your Sharepoint 3.0 database called: \\\\.\\pipe\\mssql$microsoft##ssee\\sql\\query \u2013 just put this string in your \u201cServer name\u201d field:<\/p>\n<p>\\\\.\\pipe\\mssql$microsoft##ssee\\sql\\query<\/p>\n<p>Create full backup of all databases before continuing!<\/p>\n<p>After that we should change restore mode from \u201cFull\u201d (this the parameter that allows .log.ldf to grow that large as transaction logs are not purged) to \u201cSimple\u201d:<\/p>\n<p>Expand Databases, right mouse click on Sharepoint_Config\u2026 Properties, Options, Recovery model: Simple and click OK<\/p>\n<p>Shrink the database procedure:<\/p>\n<p>Expand Databases, right mouse click on Sharepoint_Config\u2026 Tasks, Shrink, Files in File type select Log and click OK<br \/>\nYour log file will become radicaly smaller. \ud83d\ude42<\/p>\n<p>Be sure you backup your databases before this procedure and also on a daily basis\u2026<\/p>\n<p>Good luck!<\/p>\n<p>Also check:<br \/>\nhttp:\/\/geekswithblogs.net\/RogueCoder\/archive\/2008\/06\/03\/122588.aspx<br \/>\nhttp:\/\/www.karaszi.com\/SQLServer\/info_dont_shrink.asp<\/p>\n<p>All credit goes to: http:\/\/luka.manojlovic.net\/2008\/06\/15\/reduce-sharepoint-services-30-logldf-files\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had the problem that Sharepoint_Config-ID-.log.ldf grew really BIG (14GB) on a content database of 1 GB! This caused issues where the log was taking up all the available free space on the server, not OK! You can solve this problem by using \u201cShrink\u201d command in the MS SQL Server Management Studio Express First you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.stormbreaker.tech\/?p=160\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Reduce Sharepoint Services log.ldf Files&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[5],"tags":[10,9],"_links":{"self":[{"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=\/wp\/v2\/posts\/160"}],"collection":[{"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160"}],"version-history":[{"count":6,"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=\/wp\/v2\/posts\/160\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stormbreaker.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}