다음을 통해 공유


MediaPassword Property

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

The MediaPasswordproperty sets or retrieves the password for a media set.

구문

object.MediaPassword[= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list

  • value
    A string that contains the password

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetMediaPassword(SQLDMO_LPBSTR pRetVal);
HRESULT SetMediaPassword(SQLDMO_LPCSTR NewValue);

주의

The MediaPassword property provides the password used for a media set. If a media set password exists, it must be supplied to perform any restore operation from the media set. If no media set password is passed by the Backup2 object, MediaPassword is set to NULL. An application can set MediaPassword multiple times; however, after a backup or restore operation has been performed, MediaPassword cannot be altered.

[!참고]

If an application calls MediaPassword on an instance of Microsoft SQL Server version 7.0, the operation is ignored.

참고 항목

참조