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