首页 > 代码库 > sql2008清空日志

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