SQL Virtual Restore - 2.4
Worked example: checking a virtually restored database using DBCC CHECKDB - SQL Virtual Restore
SQL Virtual Restore enables you to efficiently create fully functioning databases by virtually restoring backup files. This means that you can run more stringent checks on your backup files than would usually be possible without performing a full restore.
For example, you can use the DBCC CHECKDB command to check the logical and physical integrity of all the objects in a virtually restored database.
Being able to run DBCC CHECKDB against virtually restored backup files provides much greater confidence in the validity of a backup than a RESTORE VERIFYONLY check. A backup that passes a RESTORE VERIFYONLY check may still have serious data integrity problems.
Checking database integrity automatically
To automatically run the DBCC CHECKDB command after the database has been virtually restored, select the Check the integrity of the virtual database option in step 3 of the Virtual Restore Wizard.

If you also select Drop database after integrity check, the virtually restored database will be automatically dropped following the DBCC CHECKDB command, provided the command doesn't return any errors.
Checking database integrity manually
Simply run the usual DBCC CHECKDB command against a virtually restored database:

The command operates in exactly the same way for a virtually restored database, as for a standard database.
Was this article helpful?
SQL Virtual Restore
- Upgrading the HyperBac engine components
- SQL Virtual Restore Error Checking Service Configuration - VirtualDiskSize setting required
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Virtual Restore
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using SQL Virtual Restore