Aracılığıyla paylaş


BackupRestoreBase.SetPassword Method (String)

Sets the password for a backup set.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Bildirim
Public Sub SetPassword ( _
    value As String _
)
'Kullanım
Dim instance As BackupRestoreBase
Dim value As String

instance.SetPassword(value)
public void SetPassword(
    string value
)
public:
void SetPassword(
    String^ value
)
member SetPassword : 
        value:string -> unit 
public function SetPassword(
    value : String
)

Parameters

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

BackupRestoreBase Class

SetPassword Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Security Considerations for Backup and Restore (SQL Server)

RESTORE (Transact-SQL)

BACKUP (Transact-SQL)