Sql2008清空日志

在sql server2005中,我們可以這樣清理日志

dump transaction dbName with no_log

現在sql2008中會報語法錯誤了,要用如下方法來做了

alter database dbName set recovery simple
dbcc shrinkdatabase(dbName,0)
alter database dbName set recovery full
Loading Disqus comments...