This repository contains a complete guide and SQL scripts to understand and implement various SQL Server backup types, supported by examples and a real-world hospital system scenario.
-
Part 1 β Backup Types Research
- Overview and comparison of:
- Full Backup
- Differential Backup
- Transaction Log Backup
- Copy-Only Backup
- File/Filegroup Backup
- Use cases, pros & cons, and real-world examples (banking, ticketing, etc.)
- Overview and comparison of:
-
Part 2 β Practice with TrainingDB
- Sample SQL scripts to:
- Create a test database (
TrainingDB) - Insert mock data
- Perform various types of backups
- Create a test database (
- Great for students or beginners to simulate backup operations.
- Sample SQL scripts to:
-
Part 3 β Real-World Backup Strategy (HospitalDB)
- Full SQL Server backup schedule for a hospital system:
- Weekly full backups
- Nightly differential backups
- Hourly transaction log backups
- File naming conventions and sample scripts included
- Full SQL Server backup schedule for a hospital system: