SQL数据库日志清理

USE [master]
GO
ALTER DATABASE HCPM_01_181230 SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE HCPM_01_181230 SET RECOVERY SIMPLE --简单模式
GO
USE HCPM_01_181230
GO
DBCC SHRINKFILE (N'DNF_01_Log' , 11, TRUNCATEONLY)
GO
USE [master]
GO

ALTER DATABASE HCPM_01_181230 SET RECOVERY FULL WITH NO_WAIT
GO

ALTER DATABASE HCPM_01_181230 SET RECOVERY FULL --还原为完全模式
GO

posted @ 2019-03-12 14:15  zzzp0755  阅读(149)  评论(0编辑  收藏  举报
今天的苦果,是昨天的伏笔,当下的付出,才是明日的花开!加油!!!加油!!!