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

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>
主站蜘蛛池模板: 永吉县| 南靖县| 钟祥市| 冕宁县| 巩义市| 曲阳县| 泰宁县| 额敏县| 临沭县| 涪陵区| 墨玉县| 海门市| 青浦区| 娄底市| 凤翔县| 察哈| 吉木乃县| 奉化市| 华安县| 浙江省| 逊克县| 明光市| 福鼎市| 东乌珠穆沁旗| 天等县| 全州县| 珠海市| 合肥市| 石嘴山市| 广汉市| 栖霞市| 德兴市| 翁牛特旗| 西城区| 筠连县| 芦溪县| 边坝县| 新余市| 旺苍县| 阳城县| 安化县|