| title | View backup set data & Log files | ||||||
|---|---|---|---|---|---|---|---|
| ms.custom | seo-lt-2019 | ||||||
| ms.date | 12/17/2019 | ||||||
| ms.prod | sql | ||||||
| ms.prod_service | backup-restore | ||||||
| ms.reviewer | |||||||
| ms.technology | backup-restore | ||||||
| ms.topic | conceptual | ||||||
| helpviewer_keywords |
|
||||||
| ms.assetid | abb6420c-f809-426e-aeb4-d0a74989cf39 | ||||||
| author | MikeRayMSFT | ||||||
| ms.author | mikeray |
[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md]
This topic describes how to view the data and log files in a backup set in [!INCLUDEssCurrent] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql].
In This Topic
-
Before you begin:
-
To view the data and log files in a backup set, using:
For information about security, see RESTORE FILELISTONLY (Transact-SQL)
In [!INCLUDEssKatmai] and later versions, obtaining information about a backup set or backup device requires CREATE DATABASE permission. For more information, see GRANT Database Permissions (Transact-SQL).
-
After connecting to the appropriate instance of the [!INCLUDEmsCoName] [!INCLUDEssDEnoversion], in Object Explorer, click the server name to expand the server tree.
-
Expand Databases, and, depending on the database, either select a user database or expand System Databases and select a system database.
-
Right-click the database, and then click Properties, which opens the Database Properties dialog box.
-
In the Select a Page pane, click Files.
-
Look in the Database files grid for a list of the data and log files and their properties.
-
Connect to the [!INCLUDEssDE].
-
From the Standard bar, click New Query.
-
Use the RESTORE FILELISTONLY statement. This example returns information about the second backup set (
FILE=2) on theAdventureWorksBackupsbackup device.
USE AdventureWorks2012 ;
RESTORE FILELISTONLY FROM AdventureWorksBackups
WITH FILE=2;
GO backupfilegroup (Transact-SQL)
backupfile (Transact-SQL)
backupset (Transact-SQL)
backupmediaset (Transact-SQL)
backupmediafamily (Transact-SQL)
Backup Devices (SQL Server)