sql2008清空日志

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

ALTER DATABASE MeSizeSNS SET RECOVERY FULL WITH NO_WAIT

GO

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

GO

上一篇:win7 IIS7环境下部署PHP 7.0


下一篇:搭建本地Tomcat