Condividi tramite


BackupRestoreBase.SetPassword Method (String)

Sets the password for a backup set.

Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public Sub SetPassword ( _
    value As String _
)
public void SetPassword (
    string value
)
public:
void SetPassword (
    String^ value
)
public void SetPassword (
    String value
)
public function SetPassword (
    value : String
)

Parametri

  • value
    A String value that specifies the password for the backup set.

Osservazioni

Use passwords to protect the backup sets if the backup medium is used to back up several databases with different owners.

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.

Esempio

How to: Back Up Databases and Transaction Logs in Visual Basic .NET

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

BackupRestoreBase Class
BackupRestoreBase Members
Microsoft.SqlServer.Management.Smo Namespace

Altre risorse

Considerazioni sulla protezione per il backup e il ripristino
RESTORE (Transact-SQL)
BACKUP (Transact-SQL)
Backup e ripristino di database in SQL Server