I've had a few follow-ups on my two posts about boot page and file header page corruption – asking if its possible to do single-page restore operations for these pages. Let's try:
CREATE DATABASE BootPageTest;
GO– Single page restore is only possible using the FULL recovery model
ALTER DATABASE BootPageTest SET RECOVERY FULL;
GOBACKUP DATABASE BootPageTest TO DISK = 'C:sqlskillsBootPageTest.bck';
GO
BACKUP LOG BootPageTest TO DISK = 'C:sqlskillsBootPageTest.trn';
GORESTORE DATABASE BootPageTest PAGE = '1:9' FROM DISK = 'C:sqlskillsBootPageTest.bck';
GOMsg 3111, Level 16, State 1, Line 2
Page (1:9) is a control page which cannot be restored in isolation. To repair this page, the entire file must be restored.
Msg 3013, Level 16, State 1, Line 2
RESTORE DATABASE is terminating abnormally.
The answer is no. The following page types cannot be restored using single-page restore:
3 Responses to Search Engine Q&A #22: Can all page types be single-page restored?
Can I use single page restore to restore a single table from a backup of the database & the tran. log?
I am an Oracle DBA with responsibility for some SQL Server 2005 databases. I miss the import/export
feature in Oracle that lets me export all the tables of a database, a schema, or a single table along with
its structure, data, indexes, permissions, etc. With a full database export, I can restore the whole
database, one schema, several tables, or one table at my option. I am really looking for similar
functionality in SQL Server.
[...] (or fixed using automatic page repair with database mirroring in SQL Server 2008). My blog post Search Engine Q&A #22: Can all page types be single-page restored? explains [...]
[...] Which pages cannot be single-page restored? [...]