SQL Server2008清空日志文件
时间:2021-07-01 10:21:17
帮助过:2人阅读
--
简单模式
GO
USE mydbname
GO
DBCC SHRINKFILE (N‘mydbname_Log‘ ,
11, TRUNCATEONLY)
GO
USE[master]
GO
ALTER DATABASE mydbname SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE mydbname SET RECOVERY FULL --
还原为完全模式
GO
SQL Server2008清空日志文件
标签: