当前位置:Gxlcms > 数据库问题 > sql2005,sql2008,sql2012清空日志语句

sql2005,sql2008,sql2012清空日志语句

时间:2021-07-01 10:21:17 帮助过:18人阅读

Log DbName WITH no_log GO DUMP TRANSACTION DbName WITH no_log GO USE DbName DBCC SHRINKFILE (2) GO

sql2008,sql2012清空日志语句

ALTER DATABASE DbName SET RECOVERY SIMPLE WITH NO_WAIT
ALTER DATABASE DbName SET RECOVERY SIMPLE 
DBCC SHRINKFILE (NDbName_Log , 11, TRUNCATEONLY)
ALTER DATABASE DbName SET RECOVERY FULL WITH NO_WAIT 
ALTER DATABASE DbName SET RECOVERY FULL 

 

sql2005,sql2008,sql2012清空日志语句

标签:

人气教程排行