简体   繁体   中英

How to reduce log file size of MS SQL database

How to reduce log file size of MS SQL database. The requirement is to reduce log file of the version control server's DB, Shrinking is not an option in our case.

How to reduce log file size of MS SQL database

Shrinking is the only option here, but you need to clear out the log by backing it up first. Otherwise, there won't be any free space to shrink. After you shrink it once, you can keep it from getting blown out by either

  • Backing up your transaction logs more regularly. How often depends on your RPO
  • Setting the database to Simple Mode. This is only suggested if your RPO is large enough to where your FULL BACKUPs and DIFFERENTIALS would cover it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM