TechNet
Expand All
The document is archived and information here might be outdated

How to: Recover a Database from a Backup Without Restoring Data (Transact-SQL)

This topic explains how to recover a database in a restore operation without restoring data.

  1. Execute the RESTORE DATABASE statement, specifying:

    • The name of the database to be recovered.
    • The RECOVERY clause.

This example recovers the AdventureWorks database in a restore operation without restoring data.

-- Restore database using WITH RECOVERY.
RESTORE DATABASE AdventureWorks
   WITH RECOVERY
Show:
© 2016 Microsoft