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 listvalue
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. |