Share via


Backup.SqlBackup Method

Performs the database backup operation as specified by the properties of the Backup object used.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Sub SqlBackup ( _
    srv As Server _
)
public void SqlBackup (
    Server srv
)
public:
void SqlBackup (
    Server^ srv
)
public void SqlBackup (
    Server srv
)
public function SqlBackup (
    srv : Server
)

Paramètres

  • srv
    The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.

Notes

To perform a database backup operation using SQL Server Management Objects (SMO), the application specifies the operation process by setting Backup object properties, and then it calls the SQLBackup method.

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

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

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

Sauvegarde et restauration de bases de données dans SQL Server
BACKUP (Transact-SQL)