Quantcast
Channel: Darren's Tech Blog » SharePoint
Viewing all articles
Browse latest Browse all 10

Clean Sharepoint_config LFD and other log files

$
0
0

Executing the following SQL script against the  SharePoint_Config database will compress the size of SharePoint_Config_log regardless of its size.

USE SharePoint_Config
GO
– Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE SharePoint_Config
SET RECOVERY SIMPLE;
GO
– Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (SharePoint_Config_log, 1);  – here 2 is the file ID for trasaction log file,you can also mention the log file name (dbname_log)
GO
– Reset the database recovery model.
ALTER DATABASE SharePoint_Config
SET RECOVERY FULL;
GO

if you can’t open database try using this name.

Paste this into the server name field:

\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query
Published: 12/6/2012 1:10 PM

Viewing all articles
Browse latest Browse all 10

Trending Articles