Microsfot SQL Server 2012 日志收缩
//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
作者:Olar Tan
出处:http://www.cnblogs.com/olartan
♪:没有做不到的 只有偷懒而错过的 ♪