SQL Flow Field Guide

RESTORE FILELISTONLY

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

inspects a backup

What changes

Input
backup device
Output or change
result set of metadata or verification status (REWINDONLY: tape state)

Syntax at a glance

RESTORE FILELISTONLY FROM <backup_device> [ WITH {

Work example

A restore plan needs the logical file names inside a backup set.

Read the backup file list and map each logical file to an approved target path.

Check your work Every data and log file has one intended destination with enough free space.

Open Microsoft Learn for full syntax, permissions, and details for your version.