如何清理LDF文件
如何清理LDF文件
LDF文件太大了,在网上找一下,有很多方法,但好多在SQL 2005下,没有成功。
最后用这个SQL搞定了。
脚本如下:
declare @db nvarchar(20)
set @db='KLims'
dump transaction @db with no_log
backup log @db with no_log
dbcc shrinkdatabase(@db)
posted @ 2010-10-10 13:40 Free Programmer 阅读(309) 评论(0) 编辑
