USE[master]
GO
ALTER DATABASE MeSizeSNS SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE MeSizeSNS SET RECOVERY SIMPLE --简单模式
GO
USE MeSizeSNS
GO
DBCC SHRINKFILE (N‘BangsoWeb_log‘ , 11, TRUNCATEONLY)
GO
USE[master]
GO
ALTER DATABASE MeSizeSNS SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE MeSizeSNS SET RECOVERY FULL --还原为完全模式
GO
原文地址:http://www.cnblogs.com/yeagen/p/3789419.html