首页 > 开发 > 综合 > 正文

sql2005,sql2008,sql2012清空日志语句

2024-07-21 02:46:42
字体:
来源:转载
供稿:网友
sql2005,sql2008,sql2012清空日志语句

sql2005清空日志语句

Backup Log DbName WITH no_logGODUMP TRANSACTION DbName WITH no_logGOUSE DbNameDBCC SHRINKFILE (2)GO

sql2008,sql2012清空日志语句

ALTER DATABASE DbName SET RECOVERY SIMPLE WITH NO_WAITALTER DATABASE DbName SET RECOVERY SIMPLE DBCC SHRINKFILE (N'DbName_Log' , 11, TRUNCATEONLY)ALTER DATABASE DbName SET RECOVERY FULL WITH NO_WAIT ALTER DATABASE DbName SET RECOVERY FULL 


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表