Rookie Learn sqlserver--Recovery model

Source: Internet
Author: User

Recovery mode

SQL Server supports three recovery models:

    • Simple-no log backups are supported, and automatic checkpoints truncate portions of the transaction log that are not used
    • Complete-Requires a log backup. Support Point Recovery
    • Bulk log-requires a log backup. Reduce the amount of log space usage by logging most bulk operations in a minimal way.

Different recovery models support different restore scenarios and also affect the management of transaction logs.

Restore Scenarios

By granularity, SQL Server supports the following types of restores:

    • Database Full Restore
    • Data file Restore
    • Page restore

The specific restore scheme and the recovery model corresponding to the table can be found in the reference link 2.

Selection of recovery modes

    • Simple Recovery Model

Easy to use, often used in development environments. No backup is required to restore the transaction log, so the risk of data loss is assumed.

    • Full Recovery model

Make sure you can recover to the point of failure, but consider transaction log backups.

    • Bulk-Logged Recovery model

Because bulk operations increase the overhead of log backups, the bulk recovery model minimizes logging for most bulk operations. Point Recovery not supported

Reference:

[1] Recovery Model Overview https://msdn.microsoft.com/zh-cn/library/ms189275 (v=sql.105). aspx

[2] Overview of Restore and Recovery https://msdn.microsoft.com/zh-cn/library/ms191253 (v=sql.105). aspx

[3] Select the database recovery Model https://msdn.microsoft.com/zh-cn/library/ms175987 (v=sql.105). aspx

Rookie Learn sqlserver--Recovery model

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.