Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (6.1k 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 (11.7k 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
asked Feb 17, 2021 in SQL by adhiraj (4k points)
0 votes
4 answers
0 votes
1 answer
0 votes
1 answer
asked Feb 15, 2021 in SQL by adhiraj (4k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...