BackupRestoreBase.SetMediaPassword Method (String)
Note: This API is now obsolete.
Sets the password for a media set.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
<ObsoleteAttribute> _
Public Sub SetMediaPassword ( _
value As String _
)
'Usage
Dim instance As BackupRestoreBase
Dim value As String
instance.SetMediaPassword(value)
[ObsoleteAttribute]
public void SetMediaPassword(
string value
)
[ObsoleteAttribute]
public:
void SetMediaPassword(
String^ value
)
[<ObsoleteAttribute>]
member SetMediaPassword :
value:string -> unit
public function SetMediaPassword(
value : String
)
Parameters
- value
Type: System.String
A String value that specifies the password for the media set.
Remarks
Use a password to protect the medium when the medium contains one or more backup sets that can be accessed by the same person.
Examples
Backing Up and Restoring Databases and Transaction Logs
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace