BackupRestoreBase.SetPassword Method (SecureString)
Sets the password for a backup set.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
Public Sub SetPassword ( _
value As SecureString _
)
'Usage
Dim instance As BackupRestoreBase
Dim value As SecureString
instance.SetPassword(value)
public void SetPassword(
SecureString value
)
public:
void SetPassword(
SecureString^ value
)
member SetPassword :
value:SecureString -> unit
public function SetPassword(
value : SecureString
)
Parameters
- value
Type: System.Security.SecureString
A SecureString value that specifies the password for the backup set.
Remarks
Use passwords to protect the backup sets if the backup medium is used to back up several databases with different owners.
Examples
Backing Up and Restoring Databases and Transaction Logs
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace