//Microsfot SQL Server 2012 日志收缩
USE DataBaseName;
GO
ALTER DATABASE DataBaseName
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (DataBaseName_Log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE DataBaseName
SET RECOVERY FULL;
GO