TAILIEUCHUNG - Beginning SQL Server 2005 for Developers From Novice to Professional phần 5

Tùy chọn này sẽ cập nhật số liệu thống kê dữ liệu được đưa vào, sửa đổi, hoặc xóa cho các bảng để sử dụng trong chỉ số, và nó cũng sẽ cập nhật số liệu thống kê cho các cột trong một bảng. Chúng tôi sẽ thảo luận về các danh mục hơn nữa trong Chương 6. | CHAPTER 7 DATABASE BACKUPS RECOVERY AND MAINTENANCE 189 Looking at the next question if a large number of updates are taking place then a more complex solution is required. For every data modification a record is kept in the transaction log file which has a limited amount of space. This amount of space was defined when you set up the database as a fixed maximum size or if you are allowing it to grow unrestrictedly equals the amount of hard drive there is. If you backed up and cleared the transaction log file this would free up the space logically and also aid performance. The smaller the active part of the transaction log file the better. The more transactions there are in the transaction log file the longer it will take to recover from a corrupt database. This is due to the fact that a restore will have to restore the data and then every transaction log backup to the point of failure. That is each transaction log will have to be restored to update the database not just the latest log file. If you have multiple small files and they are held on media that has to be mounted each time such as a tape then you will have to take mounting time into consideration as well. The third question though covers the real crux of the problems. If you need to back up all the data each time how often does that need to take place This could well be every night and many production systems do just this. By completing a full data backup every night you are allowing yourself to be in a state where only one or two restores may need to occur to get back to a working state in a disaster scenario. This would be the data backup followed by the single transaction log backup if one was taken in the meantime to be restored. Much better than having one data backup to be restored and then a log file for every day since the data file backup. What happens if the failure is on a Friday lunchtime and you completed your last whole database backup on a Saturday evening That would take one data file and .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.