Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in SQL by (5k points)

I am with full differential and transactional backups of the database. I tried to restore one by one, but full backup got restored, but differential backup is facing an issue with SQL Server Management Studio. What is the way to restore it?

1 Answer

0 votes
by (10.2k points)

It is really important to be acquainted with the restore sequence of restoring a full database backup.

You need to restore the full backup, differential database backup, and all transaction log backups WITH NORECOVERY option. Then, bring back the database online using the WITH RECOVERY option.

Here is a Sample restore sequence:

RESTORE DATABASE FROM full_database_backup WITH NORECOVERY;

GO

RESTORE DATABASE FROM differential_backup WITH NORECOVERY;

GO

RESTORE LOG FROM log_backup WITH NORECOVERY;

GO

-- Keep repeating it until you restore log backup

RESTORE DATABASE WITH RECOVERY;

GO

If you want to get more insights into SQL, check out this SQL Course from Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 15 in SQL by adhiraj (3.5k points)

Browse Categories

...