當使用sql2008後,發覺某些資料庫的log檔超大,這時就需要縮減log檔的空間與大小

1.dump transaction db_name with no_log

2.BACKUP LOG '資料庫名稱' WITH NO_LOG

3.
use db_name
dbcc shrinkfile(db_name_log, 幾Mb)
go

下完指令就會清空並縮減log大小。

arrow
arrow
    全站熱搜

    蒼穹 發表在 痞客邦 留言(0) 人氣()