1. 程式人生 > >解決SharePoint_Config_log.ldf檔案過大問題

解決SharePoint_Config_log.ldf檔案過大問題

sharepoint 2010 資料庫日誌檔案SharePoint_Config_log 太大了 36 g 壓縮了下 搞到100M

方法:開啟SQL Server Management Studio,查詢視窗輸入命令

USE SharePoint_Config;
GO

-- 將資料庫設定為簡單恢復模式,
ALTER DATABASE SharePoint_Config
SET RECOVERY SIMPLE;
GO


--壓縮為100M
DBCC SHRINKFILE (SharePoint_Config_log, 100);
GO
-- 恢復
ALTER DATABASE SharePoint_Config
SET RECOVERY FULL;
GO