tailieunhanh - The Real MTCS SQL Server 2008 Exam 70/432 Prep Kit- P61
The Real MTCS SQL Server 2008 Exam 70/432 Prep Kit- P61: Congratulations on your journey to become certified in SQL Server 2008. This book will help prepare you for your exam and give you a practical view of working with SQL Server 2008. | 282 Chapter 7 Maintaining Your Database Example Restoring a Damaged Page Online First restore the filegroup A and C RESTORE DATABASE AdventureWorks PAGE 1 57 1 202 1 916 1 1016 FROM DBFile2_Backup WITH NORECOVERY RESTORE LOG AdventureWorks FROM LogFile1_Backup WITH NORECOVERY RESTORE LOG AdventureWorks FROM LogFile2_Backup WITH NORECOVERY BACKUP LOG AdventureWorks TO TailLog_Backup RESTORE LOG AdventureWorks FROM TailLog_Backup WITH RECOVERY GO Head of the Class. Disaster Recovery Considerations for System Databases SQL Server stores important configuration information in system databases. Unfortunately the backup of system databases is often overlooked. This oversight results in difficulties when SQL Server is rendered inoperable by a disaster and you must restore it to the last known state. When you are restoring an entire server always restore the system databases before user databases. The following system databases must be backed up for production servers Master Model MSDB Configuration Distribution The recovery model is set to Simple for all system databases except MSDB. The recovery model for the MSDB database can be configured to Full or Bulk-Logged. If you notice that system databases are damaged you have a choice of restoring the databases from backup or rebuilding them to their initial state. If you can start Maintaining Your Database Chapter 7 283 the SQL Server service it is recommended that the system databases be restored from the most recent backup. If you cannot start the SQL Server service you must rebuild the system databases first then attempt to restore the databases. Perform the following steps to restore the Master database 1. Configure SQL Server to run in single user mode. 2. Restore the Master database from backup using the RESTORE DATABASE statement. 3. After the restore SQL Server service will disconnect your connection. 4. Configure SQL Server to run in multiple user mode and restart the service. Performing Ongoing Maintenance Many
đang nạp các trang xem trước