Sql Server 2008 清除日志

USE [master]
GO
ALTER DATABASE ELE_CMS SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE ELE_CMS SET RECOVERY SIMPLE
GO
USE ELE_CMS 
GO
DBCC SHRINKFILE (N'ELE_CMS_Log' , 0,TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE ELE_CMS SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE ELE_CMS SET RECOVERY FULL
GO

 

你可能感兴趣的:(SQL Server 2008)