Use master
GO
ALTER DATABASE [db_name] SET RECOVERY SIMPLE --简单模式
GOUSE [db_name]
GO
DBCC SHRINKFILE (N'db_name_Log' , 11, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE db_name SET RECOVERY FULL WITH NO_WAIT --恢复完全模式
Use master
GO
ALTER DATABASE [db_name] SET RECOVERY SIMPLE --简单模式
GO