清空日志
-- 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;