The log file for database is full

后端 未结 12 827
时光取名叫无心
时光取名叫无心 2021-02-08 17:15

So our SQL Server 2000 is giving me the error, \"The log file for database is full. Back up the transaction log for the database to free up some log space.\"

How do I go

12条回答
  •  伪装坚强ぢ
    2021-02-08 17:56

    I don't think renaming or moving the log file will work while the database is online.

    Easiest thing to do, IMO, is to open the properties for the database and switch it to Simple Recovery Model. then shrink the database and then go back and set the DB to Full Recoery Model (or whatever model you need).

    Changing the logging mode forces SQL Server to set a checkpoint in the database, after which shrinking the database will free up the excess space.

提交回复
热议问题