[SQL]收缩数据库日志
时间:2021-07-01 10:21:17
帮助过:27人阅读
--
简单模式
GO
USE TOMS
GO
DBCC SHRINKFILE (‘TOMS_log‘ ,
1, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE TOMS SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE TOMS SET RECOVERY FULL --
还原为完全模式
GO
[SQL]收缩数据库日志
标签: