Learn advanced SQL Server backup and recovery techniques with practical demonstrations of:
File and Filegroup Restore
Piecemeal Restore
Page Level Restore
Transaction Log Recovery
Differential Backup Recovery
Page Corruption Analysis using DBCC commands
In this tutorial, we create databases with multiple filegroups (FG1, FG2, FG3), perform full, differential, and transaction log backups, and restore them step-by-step.
Key Concepts Covered:
Creating databases with multiple filegroups
Restoring specific filegroups
Using PARTIAL option in Piecemeal Restore
Importance of PRIMARY filegroup restore
Understanding page corruption
DBCC IND and DBCC PAGE usage
Recovering corrupted SQL Server pages
SQL Server Commands Demonstrated:
Restore Database FFG
File group ='Primary',
Filegroup ='FG1',
Filegroup ='FG2',
Filegroup ='FG3'
From disk = N'd:\Backup\FFG.bak'
with norecovery
Restore Log FFG from disk = 'D:\Backup\FFG_log1.trn'
with norecovery
Restore Log FFG from disk = 'D:\Backup\FFG_log2.trn'
with recovery
Piecemeal Restore Note:
Use PARTIAL option while restoring
PRIMARY filegroup restore is mandatory
Page Restore Topics:
Understanding SQL Server pages
Page headers and page buffers
Slot information
Space allocation inside pages
Detecting corrupted pages
Recovering only damaged pages
DBCC Commands Used:
dbcc ind('testpagelevelrecover', 'shift',0)
dbcc traceon(3604, -1)
DBCC page(17, 1, 320, 3)
Perfect for:
SQL Server DBAs
Database Administrators
SQL Interview Preparation
Backup & Recovery Learning
Disaster Recovery Practice
SQL Server Beginners and Advanced Learners
#SQLServer #SQLDBA #BackupRestore #PageRestore #FilegroupRestore #PiecemealRestore #DatabaseRecovery #DBCC #TSQL #MSSQL #DisasterRecovery