时间:2021-07-01 10:21:17 帮助过:3人阅读
USE[master]
GO
ALTER DATABASE Marathon SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE Marathon SET RECOVERY SIMPLE --简单模式
GO
USE Marathon
GO
DBCC SHRINKFILE (N‘Marathon_log‘ , 11, TRUNCATEONLY)
GO
USE[master]
GO
ALTER DATABASE Marathon SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE Marathon SET RECOVERY FULL --还原为完全模式
GO
清理日志脚本sql
标签: