Udostępnij za pośrednictwem


Backup.CompressionOption Property

Gets or sets the compression option for the current backup session and is transient to the Backup Object Microsoft.SqlServer.Management.SmoExtended.Backup

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

Syntax

'Deklaracja
Public Property CompressionOption As BackupCompressionOptions
public BackupCompressionOptions CompressionOption { get; set; }
public:
property BackupCompressionOptions CompressionOption {
    BackupCompressionOptions get ();
    void set (BackupCompressionOptions value);
}
/** @property */
public BackupCompressionOptions get_CompressionOption ()

/** @property */
public void set_CompressionOption (BackupCompressionOptions value)
public function get CompressionOption () : BackupCompressionOptions

public function set CompressionOption (value : BackupCompressionOptions)

Property Value

Boolean BackupCompressionOptions

Remarks

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.