官术网_书友最值得收藏!

Backup reliability

Everything saved on disk could be somehow broken or unreadable. That's why SQL Server provides you with two features to improve backup reliability. The first option is to use backup with the CHECKSUM option. This option of backup is very simple to use and causes computation of checksum value on backup completion. This value is saved in the backup and, when we prepare for the restore process, we can test backup readability using the CHECKSUM option:

BACKUP DATABASE <database name> TO DISK = '<path to file>'
WITH
CHECKSUM

Another option is to distribute backups across more devices. It's called mirrored backup. Mirrored backup is an enterprise feature of SQL Server and, when it's used, two identical backups are written synchronously to two backup devices. When backup mirroring is used, the syntax looks as follows:

BACKUP DATABASE <database name> TO
DISK = '<path to file>'
MIRROR TO DISK = '<path to file>'
WITH <additional options like CHECKSUM>
主站蜘蛛池模板: 盐津县| 陵川县| 开远市| 留坝县| 拉萨市| 扬中市| 峨眉山市| 喀什市| 凤台县| 加查县| 顺平县| 南昌市| 河西区| 郧西县| 河北区| 南漳县| 涟源市| 疏附县| 东莞市| 东源县| 祁阳县| 巴马| 饶阳县| 察隅县| 上思县| 安图县| 舟曲县| 霍山县| 瑞金市| 东台市| 竹山县| 信丰县| 日喀则市| 江西省| 华坪县| 沙田区| 麻城市| 吉水县| 天全县| 澎湖县| 长岛县|