Aracılığıyla paylaş


BackupRestoreBase.BlockSize Property

Gets or sets the physical block size of the backup or restore, in bytes.

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

Syntax

'Bildirim
Public Property BlockSize As Integer
public int BlockSize { get; set; }
public:
property int BlockSize {
    int get ();
    void set (int value);
}
/** @property */
public int get_BlockSize ()

/** @property */
public void set_BlockSize (int value)
public function get BlockSize () : int

public function set BlockSize (value : int)

Property Value

An Int32 value that specifies the block size in bytes.

Remarks

The supported sizes are 512, 1024, 2048, 4096, 8192, 16384, 32768, and 65536 (64 KB) bytes. The default is 65536 for tape devices and 512 otherwise. Backup automatically selects the default for the device.

If you are taking a backup that you plan to copy onto and restore from a CD-ROM, specify BLOCKSIZE=2048.

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.