Aracılığıyla paylaş


BackupDevice Class

The BackupDevice object provides programmatic access to SQL Server backup devices.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Bildirim
<PhysicalFacetAttribute> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class BackupDevice
    Inherits ScriptNameObjectBase
    Implements ICreatable, IDroppable, IScriptable
[PhysicalFacetAttribute] 
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)] 
public sealed class BackupDevice : ScriptNameObjectBase, ICreatable, IDroppable, IScriptable
[PhysicalFacetAttribute] 
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)] 
public ref class BackupDevice sealed : public ScriptNameObjectBase, ICreatable, IDroppable, IScriptable
/** @attribute PhysicalFacetAttribute() */ 
/** @attribute EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) */ 
public final class BackupDevice extends ScriptNameObjectBase implements ICreatable, IDroppable, 
    IScriptable
PhysicalFacetAttribute 
EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) 
public final class BackupDevice extends ScriptNameObjectBase implements ICreatable, IDroppable, 
    IScriptable

Remarks

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 Microsoft SQL Server.

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

The BackupDeviceType property must match the definition of the sysnameSQL Server data type.

To get BackupDevice object properties, users can be a member of the public fixed server role.

To set BackupDevice object properties, users must have BACKUP DATABASE or BACKUP LOG permissions on the database, or be a member of the db_owner and db_backupoperator fixed database role and the sysadmin fixed server role.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.