时间:2021-07-01 10:21:17 帮助过:33人阅读
USE [master]
GO
ALTER DATABASE DbName SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE DbName SET RECOVERY SIMPLE --简单模式
GO
USE cp2yfx
GO
DBCC SHRINKFILE (N‘DbName_log‘ , 11, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE DbName SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE DbName SET RECOVERY FULL --还原为完全模式
GO
清除sqlserver2008日志文件。
标签:sqlserver