BackupDevices Collection
この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。
The BackupDevices collection contains BackupDevice objects that expose the backup devices defined on a server running Microsoft SQL Server.
Methods
|
解説
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 for its functioning.
With the BackupDevices collection, you can:
- Create a new backup device definition for a server running SQL Server.
- Remove a backup device definition.
For more information about creating backup devices, see BackupDevice Object.
To remove a backup device
Use the Remove method of the BackupDevices collection of a connected SQLServer object. Indicate the targeted backup device using the backup device name or the ordinal location in the collection, as in:
oSQLServer.BackupDevices.Remove("Northwind_Tape")