Backup and Recovery of SQL Server
Database
Presented To
Roksana Khanom
Alif Al Ashik
(M200305558) Assistent Professor
Dept. Of Computer
Science&Engineering
Introduction
How to create a full “Database Backup”
How to restore from “Backup”
Advantages of using Database Backup
Drawbacks and Limitations
Conclusion
In SQL Server we can create database backup in 3 ways
• Full – creates a complete backups of database as well as part of
transaction log, so the database can be recovered.
• Differential – a data backup that is based on the latest full backup
of a complete or partial database. It contains only those extends that
have changed since the last full backup.
• Transaction Log – A backup of transaction logs that includes all
log records that were not backed up in a previous log backup. It
allows us to backup the active part of the transaction log.
Right click on the database that you want tobackup
Then, Select "Tasks" and click on "Back Up”.
Now, Select the Backup type “Full” to create a fulldatabase
backup and “Add” backup location.
Give file name and Click“OK”.
Again, Click on “Ok” to create full databasebackup.
• Right click on the database and click on “Restore
Database”.
Protects you from potentially catastrophic data loss.
o Backups of a database are useful for routine administrative
purposes.
With valid backups of a database, you can recover your data
from many failures, such as:
• Media failure.
• User errors, for example, dropping a table by mistake.
• Hardware failures, for example, a damaged disk drive or
permanent loss of a server.
• Natural disasters.
Due to a full backup of the database, every time space
required might develop into an issue.
In case of a disaster, recovery is only possible since the last
FULL backup.
Backups created by more recent versions of SQL server
cannot be restored in earlier versions of SQL Server
(doesn’t allows downgrading).
Database created in lower versions of SQL server takes
more time to restore in higher versions due to the upgrade
process of database.
DBA must be prepared for situations where a failure impacts the
availability, integrity or usability of a database.
Reacting to failures and disruptions is a key component of DBA’s
job.
The idea of creating a database backup and restoring them when
they are needed creates space overhead wherever we save the
backup copy.
But it has saved many business industries and other organizations
from loss of millions or billion dollars.
Questions and Answers

my final ppresenntation.pptx

  • 1.
    Backup and Recoveryof SQL Server Database
  • 2.
    Presented To Roksana Khanom AlifAl Ashik (M200305558) Assistent Professor Dept. Of Computer Science&Engineering
  • 3.
    Introduction How to createa full “Database Backup” How to restore from “Backup” Advantages of using Database Backup Drawbacks and Limitations Conclusion
  • 4.
    In SQL Serverwe can create database backup in 3 ways • Full – creates a complete backups of database as well as part of transaction log, so the database can be recovered. • Differential – a data backup that is based on the latest full backup of a complete or partial database. It contains only those extends that have changed since the last full backup. • Transaction Log – A backup of transaction logs that includes all log records that were not backed up in a previous log backup. It allows us to backup the active part of the transaction log.
  • 5.
    Right click onthe database that you want tobackup Then, Select "Tasks" and click on "Back Up”.
  • 6.
    Now, Select theBackup type “Full” to create a fulldatabase backup and “Add” backup location.
  • 7.
    Give file nameand Click“OK”.
  • 8.
    Again, Click on“Ok” to create full databasebackup.
  • 9.
    • Right clickon the database and click on “Restore Database”.
  • 13.
    Protects you frompotentially catastrophic data loss. o Backups of a database are useful for routine administrative purposes. With valid backups of a database, you can recover your data from many failures, such as: • Media failure. • User errors, for example, dropping a table by mistake. • Hardware failures, for example, a damaged disk drive or permanent loss of a server. • Natural disasters.
  • 14.
    Due to afull backup of the database, every time space required might develop into an issue. In case of a disaster, recovery is only possible since the last FULL backup. Backups created by more recent versions of SQL server cannot be restored in earlier versions of SQL Server (doesn’t allows downgrading). Database created in lower versions of SQL server takes more time to restore in higher versions due to the upgrade process of database.
  • 15.
    DBA must beprepared for situations where a failure impacts the availability, integrity or usability of a database. Reacting to failures and disruptions is a key component of DBA’s job. The idea of creating a database backup and restoring them when they are needed creates space overhead wherever we save the backup copy. But it has saved many business industries and other organizations from loss of millions or billion dollars.
  • 16.