Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 2.07 KB

File metadata and controls

51 lines (40 loc) · 2.07 KB
title sysopentapes (Transact-SQL)
description sysopentapes (Transact-SQL)
author VanMSFT
ms.author vanto
ms.date 05/26/2026
ai-usage ai-assisted
ms.service sql
ms.subservice system-objects
ms.topic reference
f1_keywords
sysopentapes
sysopentapes_TSQL
helpviewer_keywords
backup media [SQL Server], sysopentapes system table
sysopentapes system table
dev_langs
TSQL

sysopentapes (Transact-SQL)

[!INCLUDE SQL Server]

Contains one row for each currently open tape device. This view is stored in the master database.

Important

This system table appears as a view for backward compatibility. Instead, use the sys.dm_io_backup_tapes (Transact-SQL) dynamic management view.

Note

You can't drop the sysopentapes view.

Columns

Column name Data type Description
openTape nvarchar(64) Physical file name of an open tape device. For more information about opening and releasing tape devices, see BACKUP (Transact-SQL) and RESTORE (Transact-SQL).

Permissions

The user needs VIEW SERVER STATE permission on the server.

Permissions for SQL Server 2022 and later

Requires VIEW SERVER PERFORMANCE STATE permission on the server.

Related content