sys.sysdevices (Transact-SQL)


Contains one row for each disk backup file, tape backup file, and database file.

System_CAPS_ICON_important.jpg Important

This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping System Tables to System Views (Transact-SQL). This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Applies to: SQL Server (SQL Server 2008 through current version).
Column nameData typeDescription
namesysnameLogical name of the backup file or database file.
sizeintSize of the file in 2-kilobyte (KB) pages.
lowintMaintained for backward compatibility only.
highintMaintained for backward compatibility only.
statussmallintBitmap indicating the type of device:

1 = Default disk

2 = Physical disk

4 = Logical disk

8 = Skip header

16 = Backup file

32 = Serial writes

4096 = Read-only
cntrltypesmallintController type:

0 = Non-CD-ROM database file

2 = Disk backup file

3 - 4 = Diskette backup file

5 = Tape backup file

6 = Named-pipe file
phynamenvarchar(260)Name of the physical file.

Mapping System Tables to System Views (Transact-SQL)
Compatibility Views (Transact-SQL)

Community Additions