SQL Server Backup and Restore

SQL Server Backup and Restore

简介:

本书向您展示了如何设置可靠的、经过测试的SQL Server备份和还原计划。获取以最短停机时间恢复数据的提示。了解如何在灾难发生时最大限度地减少数据丢失。本书中用于备份自动化的首选工具是Red Gate SQL backup。构建您自己的自动化解决方案将需要大量工作,但我们确实提供了一些关于可能选项的建议,例如PowerShell脚本、t-sql脚本和SQL Server代理作业。

数据库管理员 (DBA) 的职责和职责使列表很长且动态变化,从提供查询调优建议到削减存储过程,一直到系统流程设计和实现高可用性。DBA每天的任务很少是恒定的; 除了一个例外: 需要确保每天在发生错误或灾难时可以恢复和恢复其负责的任何数据库。这意味着,如果数据库由于任何原因被损坏、丢弃或变得不可用,那么DBA有责任将该数据库恢复到问题发生前的状态,或者尽可能接近。当然,这并不意味着DBA需要每天恢复数据库,只是如果灾难发生,DBA必须准备好处理它,无论它何时发生或为什么发生。如果DBA没有做好准备,并且大量数据丢失,或者数据库长时间对最终用户不可用,那么DBA可能不会在他们的工作中太长时间。这就是为什么一个好的、经过测试的SQL Server备份和还原计划必须在每个管理DBA的任务列表的顶部。

在本书中,您将了解如何使用SQL Server Management Studio (SSMS),基本的t-sql脚本和Red Gate的SQL备份工具执行这些备份和还原操作。使用SSMS或简单脚本捕获备份对于一次性备份操作是非常好的,但是对于任何给定数据库,构成恢复策略一部分的任何备份都必须是自动化的,并且您还需要构建一些检查,例如,如果出现问题,立即提醒负责的DBA。本书中用于备份自动化的首选工具是Red Gate SQL backup。构建您自己的自动化解决方案将需要大量工作,但我们确实提供了一些关于可能选项的建议,例如PowerShell脚本、t-sql脚本和SQL Server代理作业。

英文简介:

This book shows you how to set-up a reliable, tested, SQL Server backup and restore plan. Get tips for recovering your data with minimum downtime. Learn how to minimize data loss when disaster strikes. The tool of choice in this book for backup automation is Red Gate SQL Backup. Building your own automated solution will take a lot of work, but we do offer some advice on possible options, such as PowerShell scripting, T-SQL scripts and SQL Server Agent jobs.

The duties and responsibilitie:s of a Database Administrator (DBA) make for long and dynamically changing list, ranging from offering query tuning advice, to cutting stored procedures, all the way through to system process design and implementation for high availability. A DBA's tasks, from day-to-day, are rarely constant; with one exception: the need to ensure each and every day that any database in their charge can be restored and recovered, in the event of error of disaster. This means that if a database, for whatever reason, gets corrupted, dropped, or otherwise becomes unusable, then it is the DBA's responsibility to restore that database to the state it was in before the problem occurred, or as close as is possible. Of course, this doesn't mean that a DBA is required to restore a database each and every day, just that if disaster does strike the DBA must be prepared to deal with it, regardless of when or why it occurs. If a DBA isn't prepared, and significant data is lost, or databases become unavailable to end users for long periods of time, then that DBA probably won't be in their job for too long. This is why a good, and tested, SQL Server backup and restore plan must be on the top of every administrative DBA's list of tasks.

In this book, you'll discover how to perform each of these backup and restore operations using SQL Server Management Studio (SSMS), basic T-SQL scripts and Red Gate's SQL Backup tool. Capturing backups using SSMS or simple scripts is perfectly fine for one-off backup operations, but any backups that form part of the recovery strategy for any given database must be automated and you'll also want to build in some checks that, for example, alert the responsible DBA immediately if a problem arises. The tool of choice in this book for backup automation is Red Gate SQL Backup. Building your own automated solution will take a lot of work, but we do offer some advice on possible options, such as PowerShell scripting, T-SQL scripts and SQL Server Agent jobs.

书名
SQL Server Backup and Restore
译名
SQL Server 备份和还原
语言
英语
年份
2012
页数
391页
大小
4.78 MB
标签
  • SQL
  • 下载
    pdf iconSQL Server Backup and Restore.pdf
    密码
    65536

    最后更新:2025-04-12 23:57:35

    ←Introduction to SQL

    →SQL Server Team-based Development