Type Property (BackupDevice)
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The Type property exposes configured attributes of the referenced Microsoft SQL Server component.
구문
object
.Type [= value]
Parts
object
An expression that evaluates to an object in the Applies To list.value
A long integer that specifies a device type as described in Settings.
Data Type
Long, enumerated
Modifiable
Read/write when using the BackupDevice object to define a backup device. Read-only when the BackupDevice object references an existing backup device.
Prototype (C/C++)
HRESULT GetType(SQLDMO_DEVICE_TYPE* pRetVal)
HRESULT SetType(SQLDMO_DEVICE_TYPE NewValue)
Settings
Constant |
Value |
Description |
---|---|---|
SQLDMODevice_CDROM |
7 |
Reserved for future use. |
SQLDMODevice_DiskDump |
2 |
The device is a disk file. |
SQLDMODevice_FloppyADump |
3 |
The device is a disk file created on removable media in the A drive. |
SQLDMODevice_FloppyBDump |
4 |
The device is a disk file created on removable media in the B drive. |
SQLDMODevice_PipeDump |
6 |
The device identifies a named pipe. |
SQLDMODevice_TapeDump |
5 |
The device is a tape. |
SQLDMODevice_Unknown |
100 |
The device type is not valid. |