Database log file size is too big

Olga Loseva -

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);  -- here SharePoint_Config_Log is the logical name of the log file
GO
-- Reset the database recovery model.
ALTER DATABASE SharePoint_Config
SET RECOVERY FULL;
GO

Have more questions? Submit a request

Comments

Powered by Zendesk