Why is SQL Server backup so much larger than the DB files?

后端 未结 2 770
灰色年华
灰色年华 2021-02-18 20:12

I have a SQL Server DB that is about 13Gb with a 1.6Gb log file. When I back it up, however, it creates a 50Gb .bak file! Why is that?

I have read some commentary here

相关标签:
2条回答
  • 2021-02-18 21:08

    In my case, I found that the 500MB database also had a 560MB full text catalogue attached which gets included in the backup file. I thought I'd add this despite another answer having been accepted in case anyone else is still stumped :)

    0 讨论(0)
  • 2021-02-18 21:11

    It might be because the backup routine is appending the new backup to the same file?

    There is an option in the Backup dialog in Sql Management Studio to Append or Overwrite all existing backup sets. If you have Append if will add the backup to the same .bak file and the .bak file will be larger for every backup.

    In Transact Sql it is the INIT and NOINIT option which determine if the bak file is overwritten or appended.

    0 讨论(0)
提交回复
热议问题