USE [master]
GO
ALTER DATABASE CustomsAtom SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE CustomsAtom SET RECOVERY SIMPLE --简单模式
GO
USE CustomsAtom
GO
DBCC SHRINKFILE (N'CustomsNuke_log' , 11, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE CustomsAtom SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE CustomsAtom SET RECOVERY FULL --还原为完全模式
GO
使用DBCC缩减数据库中log文件的大小
最新推荐文章于 2020-07-24 08:53:27 发布