SQL Server 数据库清空日志方法
来源:靑龍一笑的博客 作者:靑龍一笑 发布时间:2016-08-07 17:47:05 点击量:705 评论:0
主要有三个步骤:
1、截断事务日志
2、清空日志
3、收缩数据库文件
具体命令如下:
Backup Log TRSMAS with no_log
go
dump transaction TRSMAS with no_log
go
USE TRSMAS
DBCC SHRINKFILE (2)
Go
go
dump transaction TRSMAS with no_log
go
USE TRSMAS
DBCC SHRINKFILE (2)
Go
版权所有 © 2005-2023 靑龍一笑的博客 Powered by C.S.Ricen
Copyright © 2005-2023 by www.ricensoftwares.com.cn All Rights Reserved.
Copyright © 2005-2023 by www.ricensoftwares.com.cn All Rights Reserved.