Freigeben über


Backup.CompressionOption-Eigenschaft

Gets or sets the backup compression option.

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

Syntax

'Declaration
Public Property CompressionOption As BackupCompressionOptions 
    Get 
    Set
'Usage
Dim instance As Backup 
Dim value As BackupCompressionOptions 

value = instance.CompressionOption

instance.CompressionOption = value
public BackupCompressionOptions CompressionOption { get; set; }
public:
property BackupCompressionOptions CompressionOption {
    BackupCompressionOptions get ();
    void set (BackupCompressionOptions value);
}
member CompressionOption : BackupCompressionOptions with get, set
function get CompressionOption () : BackupCompressionOptions 
function set CompressionOption (value : BackupCompressionOptions)

Eigenschaftswert

Typ: Microsoft.SqlServer.Management.Smo.BackupCompressionOptions
The backup compression option.

Hinweise

Member Name

Value

Description

Default

0

Use the default backup compression server configuration

On

1

Enable the backup compression

Off

2

Disable the backup compression

Beispiele

Sichern und Wiederherstellen von Datenbanken und Transaktionsprotokollen

Siehe auch

Verweis

Backup Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

BACKUP (Transact-SQL)