Export (0) Print
Expand All

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)

public int BlockSize { get; set; }

Property Value

Type: Int32
An Int32 value that specifies the block size in bytes.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft