BackupRestoreBase.Checksum Property

 

Gets or sets a Boolean property value that determines whether a checksum value is calculated during backup or restore operations.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

public bool Checksum { get; set; }
public:
property bool Checksum {
    bool get();
    void set(bool value);
}
member Checksum : bool with get, set
Public Property Checksum As Boolean

Property Value

Type: System.Boolean

A Boolean value that specifies whether the checksum value is calculated.

If True, the checksum value is calculated. Otherwise, False (default).

Remarks

You can use the Checksum property to compute the checksum value during backup and restore operations. This helps to increase the reliability of backup media.

If the Checksum property is set to False, the ContinueAfterError property will be ignored.

Examples

Legacy Code Example

Backing Up and Restoring Databases and Transaction Logs

See Also

BackupRestoreBase Class
Microsoft.SqlServer.Management.Smo Namespace
CHECKSUM (Transact-SQL)
RESTORE (Transact-SQL)
BACKUP (Transact-SQL)

Return to top