SQL SERVER 清空日志

清空日志
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE CCM_001 SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE ('CCM_001_log', 1);
-- Reset the database recovery model.
ALTER DATABASE CCM_001 SET RECOVERY FULL;

原文地址:https://www.cnblogs.com/xiebin1986/p/2824933.html