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

'Declaration
Public Property Checksum As Boolean 
    Get 
    Set
'Usage
Dim instance As BackupRestoreBase 
Dim value As Boolean 

value = instance.Checksum

instance.Checksum = value
public bool Checksum { get; set; }
public:
property bool Checksum {
    bool get ();
    void set (bool value);
}
member Checksum : bool with get, set
function get Checksum () : boolean 
function set Checksum (value : 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

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

BackupRestoreBase Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

CHECKSUM (Transact-SQL)

RESTORE (Transact-SQL)

BACKUP (Transact-SQL)