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

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>
主站蜘蛛池模板: 千阳县| 汶上县| 莫力| 北安市| 深圳市| 那坡县| 宁强县| 昌平区| 濮阳县| 南安市| 尖扎县| 宁都县| 辉南县| 阳城县| 百色市| 福泉市| 固镇县| 鹤岗市| 虞城县| 油尖旺区| 沙河市| 屏边| 浦北县| 会宁县| 遂溪县| 宁安市| 漠河县| 沭阳县| 枣庄市| 尉氏县| 大城县| 赤水市| 白朗县| 全州县| 衢州市| 澎湖县| 舒兰市| 鸡西市| 昭苏县| 天柱县| 民勤县|