--- title: "Restore a Backup from a Device (SQL Server) | Microsoft Docs" ms.custom: "" ms.date: "06/13/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: backup-restore ms.topic: conceptual helpviewer_keywords: - "restoring databases [SQL Server], device restores" - "backup devices [SQL Server], restoring from" - "database restores [SQL Server], device restores" - "devices [SQL Server]" ms.assetid: 6e139de7-7de2-4d18-9df0-beac31ba7ff1 author: MikeRayMSFT ms.author: mikeray manager: craigg --- # Restore a Backup from a Device (SQL Server) This topic describes how to restore a backup from a device in [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)] by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)]. > [!NOTE] > For information on SQL Server backup to the Azure Blob storage service, see, [SQL Server Backup and Restore with Azure Blob Storage Service](sql-server-backup-and-restore-with-microsoft-azure-blob-storage-service.md). **In This Topic** - **Before you begin:** [Security](#Security) - **To restore a backup from a device, using:** [SQL Server Management Studio](#SSMSProcedure) [Transact-SQL](#TsqlProcedure) ## Before You Begin ### Security #### Permissions If the database being restored does not exist, the user must have CREATE DATABASE permissions to be able to execute RESTORE. If the database exists, RESTORE permissions default to members of the **sysadmin** and **dbcreator** fixed server roles and the owner (**dbo**) of the database (for the FROM DATABASE_SNAPSHOT option, the database always exists). RESTORE permissions are given to roles in which membership information is always readily available to the server. Because fixed database role membership can be checked only when the database is accessible and undamaged, which is not always the case when RESTORE is executed, members of the **db_owner** fixed database role do not have RESTORE permissions. ## Using SQL Server Management Studio #### To restore a backup from a device 1. After connecting to the appropriate instance of the [!INCLUDE[msCoName](../../includes/msconame-md.md)] [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)], in Object Explorer, click the server name to expand the server tree. 2. Expand **Databases**, and, depending on the database, either select a user database or expand **System Databases** and select a system database. 3. Right-click the database, point to **Tasks**, and then click **Restore**. 4. Click the type of restore operation you want (**Database**, **Files and Filegroups**, or **Transaction Log**). This opens the corresponding restore dialog box. 5. On the **General** page, in the **Restore source** section, click **From device**. 6. Click the browse button for the **From device** text box, which opens the **Specify Backup** dialog box. 7. In the **Backup media** text box, select **Backup Device**, and click the **Add** button to open the **Select Backup Device** dialog box. 8. In the **Backup device** text box, select the device you want to use for the restore operation. ## Using Transact-SQL #### To restore a backup from a device 1. Connect to the [!INCLUDE[ssDE](../../includes/ssde-md.md)]. 2. From the Standard bar, click **New Query**. 3. In the [RESTORE](/sql/t-sql/statements/restore-statements-transact-sql) statement, specify a logical or physical backup device to use for the backup operation. This example restores from a disk file that has the physical name `Z:\SQLServerBackups\AdventureWorks2012.bak`. ```sql RESTORE DATABASE AdventureWorks2012 FROM DISK = 'Z:\SQLServerBackups\AdventureWorks2012.bak' ; ``` ## See Also [RESTORE FILELISTONLY (Transact-SQL)](/sql/t-sql/statements/restore-statements-filelistonly-transact-sql) [RESTORE HEADERONLY (Transact-SQL)](/sql/t-sql/statements/restore-statements-headeronly-transact-sql) [RESTORE LABELONLY (Transact-SQL)](/sql/t-sql/statements/restore-statements-labelonly-transact-sql) [RESTORE VERIFYONLY (Transact-SQL)](/sql/t-sql/statements/restore-statements-verifyonly-transact-sql) [Restore a Database Backup Under the Simple Recovery Model (Transact-SQL)](restore-a-database-backup-under-the-simple-recovery-model-transact-sql.md) [Restore a Database Backup (SQL Server Management Studio)](restore-a-database-backup-using-ssms.md) [Restore a Differential Database Backup (SQL Server)](restore-a-differential-database-backup-sql-server.md) [Restore a Database to a New Location (SQL Server)](restore-a-database-to-a-new-location-sql-server.md) [Back Up Files and Filegroups (SQL Server)](back-up-files-and-filegroups-sql-server.md) [Back Up a Transaction Log (SQL Server)](back-up-a-transaction-log-sql-server.md) [Create a Differential Database Backup (SQL Server)](create-a-differential-database-backup-sql-server.md)