SQL Flow Field Guide

RESTORE REWINDONLY

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 REWINDONLY FROM <backup_device> [ ,...n ] [ WITH {UNLOAD | NOUNLOAD}] } [;]

Work example

A legacy tape workflow must rewind a backup device after a restore sequence.

Confirm the device type and current tape procedure before planning this media step.

Check your work The tape device reaches its ready position and the next approved media operation can proceed.

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