HOW TO BACKUP SQL
SQL SERVER DATABASE




              DBATAG
              www.sqlServer-Training.com
AGENDA
• WHY Database backed is required ?
• Ways to Take SQL Server Database Backup
• Type of Backup
• DEMO : How to Take Backup
• Compress SQL Database Backup
• DEMO : How to Enable Backup Compression
WHY DATABASE BACKED IS REQUIRED ?

   Ensuring
     reliable     • Computers have a tendency to go
  backups of        wrong from time to time, these days
corporate data      total hard drive failure is rare, but it
                    does happen
 is one of the    • Viruses / SQL INJECTIONS
most important    • Human Error while updating data,
    roles for       Developer has missed to select where
   database         part in update / delete statement.
administrators.
WAYS TO TAKE SQL SERVER DATABASE BACKUP

   Manual     • Graphically - using SQL Server
                Management Studio by few clicks
    (On       • TSQL - using TSQL code
  Demand)

 Automatic    • We can also Schedule a backup
                where SQL Server will
(Scheduled)     automatically take backup
TYPE OF BACKUP
Full - All data files and active part of the transaction log
Differential - The parts of the database that have changed since the
last full database backup
Partial - The primary filegroup, every read/write filegroup, and any
specified read-only filegroups
Transaction Log - Any database changes recorded in the log files
Tail-log Backup - Log backup taken of the tail of the log just before a
restore operation
File/File Group - Specified files or filegroups
Copy Only - The database or log (without affecting the backup
sequence)
DEMO

Taking SQL Server FULL Database backup
Manually using SSMS – Graphically

Taking SQL Server FULL Database backup
Manually using TSQL CODE

Schedule a Database Backup
COMPRESS SQL DATABASE BACKUP
Compression helps to reduce the size of backup
but it consume CPU during backing up database.
 Note : -Database Compression is Available from SQL Server
 2008 onwards and with Standard and higher editions
DEMO


How to Enable Database
Compression

Explicitly compress on
demand backup
DO CHECK MY OTHERS POSTS

How to check Database which are not backed up in last 24 hours

Database Backup Report, Monthly Weekly

Report for Time Consumed by Backup Operations

How to verify Database Backups are good ?

Get notified in case backup fails

How to restore database backup

Designing Backup Strategies
FOR MORE TUTORIALS
Visit our website


         www.DBATAG.com
          www.sqlServer-
           Training.com

How to backup sql

  • 1.
    HOW TO BACKUPSQL SQL SERVER DATABASE DBATAG www.sqlServer-Training.com
  • 2.
    AGENDA • WHY Databasebacked is required ? • Ways to Take SQL Server Database Backup • Type of Backup • DEMO : How to Take Backup • Compress SQL Database Backup • DEMO : How to Enable Backup Compression
  • 3.
    WHY DATABASE BACKEDIS REQUIRED ? Ensuring reliable • Computers have a tendency to go backups of wrong from time to time, these days corporate data total hard drive failure is rare, but it does happen is one of the • Viruses / SQL INJECTIONS most important • Human Error while updating data, roles for Developer has missed to select where database part in update / delete statement. administrators.
  • 4.
    WAYS TO TAKESQL SERVER DATABASE BACKUP Manual • Graphically - using SQL Server Management Studio by few clicks (On • TSQL - using TSQL code Demand) Automatic • We can also Schedule a backup where SQL Server will (Scheduled) automatically take backup
  • 5.
    TYPE OF BACKUP Full- All data files and active part of the transaction log Differential - The parts of the database that have changed since the last full database backup Partial - The primary filegroup, every read/write filegroup, and any specified read-only filegroups Transaction Log - Any database changes recorded in the log files Tail-log Backup - Log backup taken of the tail of the log just before a restore operation File/File Group - Specified files or filegroups Copy Only - The database or log (without affecting the backup sequence)
  • 6.
    DEMO Taking SQL ServerFULL Database backup Manually using SSMS – Graphically Taking SQL Server FULL Database backup Manually using TSQL CODE Schedule a Database Backup
  • 7.
    COMPRESS SQL DATABASEBACKUP Compression helps to reduce the size of backup but it consume CPU during backing up database. Note : -Database Compression is Available from SQL Server 2008 onwards and with Standard and higher editions
  • 8.
    DEMO How to EnableDatabase Compression Explicitly compress on demand backup
  • 9.
    DO CHECK MYOTHERS POSTS How to check Database which are not backed up in last 24 hours Database Backup Report, Monthly Weekly Report for Time Consumed by Backup Operations How to verify Database Backups are good ? Get notified in case backup fails How to restore database backup Designing Backup Strategies
  • 10.
    FOR MORE TUTORIALS Visitour website www.DBATAG.com www.sqlServer- Training.com