Share via


BackupDevice Object

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The BackupDevice object represents the properties of a Microsoft SQL Server backup device.

현재 개체를 보여 주는 SQL-DMO 개체 모델

주의

SQL Server backup devices specify the behavior of specific backup media, usually tape. Backup devices are not required when issuing a BACKUP or RESTORE statement and are not required by the Backup object.

With the BackupDevice object, you can:

  • Define a new backup device for a server running SQL Server.

  • Change the definition of an existing SQL Server backup device.

The Name property of the BackupDevice object must match the definition of the sysname SQL Server data type.

To create a backup device

  1. Create a BackupDevice object.

  2. Set the Name property.

  3. Set properties that define the behavior or use of the device, such as the tape label skip parameter or the physical location.

  4. Add the BackupDevice object to the BackupDevices collection of a connected SQLServer object.