USE [master]
GO
ALTER DATABASE cwbase1 SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE cwbase1 SET RECOVERY SIMPLE --简单模式
GO
USE cwbase1
GO
DBCC SHRINKFILE (N'cwbase003_log' , 5, TRUNCATEONLY)
GO
ALTER DATABASE cwbase1 SET RECOVERY FULL --还原为完全模式
GO
ALTER DATABASE cwbase1 SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE cwbase1 SET RECOVERY SIMPLE --简单模式
GO
USE cwbase1
GO
DBCC SHRINKFILE (N'cwbase003_log' , 5, TRUNCATEONLY)
GO
ALTER DATABASE cwbase1 SET RECOVERY FULL --还原为完全模式