SELECT NAME,recovery_model_desc FROM sys.databases
-- 如果是FULL类型,修改为SIMPLE类型
ALTER DATABASE DBName SET Recovery simple
-- 收缩日志文件大小(单位是M)
DBCC SHRINKFILE (N'DBFileLogName' , 10240)
-- 检查日志文件名称
SELECT NAME, size FROM sys.database_files
-- 恢复成FULL类型
ALTER DATABASE DBName SET Recovery FULL