USE [master]
GO
ALTER DATABASE qq SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE qq SET RECOVERY SIMPLE
GO
USE qb
GO
DBCC SHRINKFILE (N'qq_Log' , 0,TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE qq SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE qq SET RECOVERY FULL
GO