复制代码 代码如下:
Backup Log DNName with no_log ‘这里的DNName是你要收缩的数据库名,自己注意修改下面的数据库名,我就不再注释了。
go
dump transaction DNName with no_log
go
USE DNName
DBCC SHRINKFILE (2)
Go
SQL Server2005清除数据库日志
标签:sql log 清除数据 是你 cti with 修改 name dbcc
本文系统来源:http://www.cnblogs.com/dodui/p/6015301.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!