USE [master]
GO
ALTER DATABASE topsms SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE topsms SET RECOVERY SIMPLE --简单模式
GO
USE topsms
GO
DBCC SHRINKFILE (N'topsms_Log' , 10, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE topsms SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE topsms SET RECOVERY FULL --还原为完全模式
GO
USE [master]
GO
ALTER DATABASE toppmswx2 SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE toppmswx2 SET RECOVERY SIMPLE --简单模式
GO
USE toppmswx2
GO
DBCC SHRINKFILE (N'toppmswx2_Log' , 1, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE toppmswx2 SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE toppmswx2 SET RECOVERY FULL --还原为完全模式
GO
USE [master]
GO
ALTER DATABASE dnt31 SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE dnt31 SET RECOVERY SIMPLE --简单模式
GO
USE dnt31
GO
DBCC SHRINKFILE (N'dnt31_Log' , 1, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE dnt31 SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE dnt31 SET RECOVERY FULL --还原为完全模式
GO
USE [master]
GO
ALTER DATABASE toppms SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE toppms SET RECOVERY SIMPLE --简单模式
GO
USE toppms
GO
DBCC SHRINKFILE (N'toppms_Log' , 10, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE toppms SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE toppms SET RECOVERY FULL --还原为完全模式
GO