다음을 통해 공유


BackupDevice.PhysicalLocation 속성

Gets or sets the path to the device or operating system file that represents the physical backup location.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property PhysicalLocation As String 
    Get 
    Set
‘사용 방법
Dim instance As BackupDevice 
Dim value As String 

value = instance.PhysicalLocation

instance.PhysicalLocation = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public string PhysicalLocation { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property String^ PhysicalLocation {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member PhysicalLocation : string with get, set
function get PhysicalLocation () : String 
function set PhysicalLocation (value : String)

속성 값

유형: System.String
A String value that contains the full path to the physical location of the backup device. By default, the value is an empty string.

주의

The PhysicalLocation property is a string with a maximum of 260 characters.

Specify an operating system file or tape using a UNC string. For example, the string \\Seattle1\Backups\Northwind.bak specifies a server name, directory, and file name for a backup device. The string \\.\TAPE0 specifies a server and a file device, most likely a tape, as a backup device.

데이터베이스 및 트랜잭션 로그 백업 및 복원

참고 항목

참조

BackupDevice 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

백업 장치(SQL Server)