20 September,2012 by Jack Vamvas
Sometimes I’ll receive a SQL Server Backup File , either by a colleague or a third party vendor. The request is to RESTORE onto a lab or dev server . Usually there is no accompanying information , including source server SQL Server version.
Fortunately there are some RESTORE commands which supply you with all the information needed. RESTORE VERIFY ONLY, RESTORE HEADER ONLY, and RESTORE FILELIST ONLY.
Use these commands to make the appropriate decision for how you’ll compose the RESTORE command
--More appropriate for verifying the actual backup process. RESTORE VERIFYONLY FROM DISK = 'H:\test1.bak' -- View all the backup header information RESTORE HEADERONLY FROM DISK = ‘H:\test1.bak' --View list of data and log files in the backup RESTORE FILELISTONLY FROM DISK = 'H:\test1.bak'
Differential backup cannot be restored . BACKUP with COPY_ONLY
SQL Server - RESTORE VERIFYONLY
SQL Server faster restores with instant file initialisation
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |