1. 程式人生 > >SQL清理日誌檔案

SQL清理日誌檔案

瞬間完成清理日誌檔案

USE [master]
GO
ALTER DATABASE N6_4F SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE N6_4F SET RECOVERY SIMPLE
GO
USE N6_4F
GO
DBCC SHRINKFILE (N'N6_4F_Log' , 11, TRUNCATEONLY) 
GO
USE [master]
GO
ALTER DATABASE N6_4F SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE N6_4F SET RECOVERY FULL
GO