Backup.SqlBackup Method
Performs the database backup operation as specified by the properties of the Backup object used.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
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
)
Parámetros
- srv
The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.
Notas
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.
Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.
Ejemplo
How to: Back Up Databases and Transaction Logs in Visual Basic .NET
Seguridad para subprocesos
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.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
Backup Class
Backup Members
Microsoft.SqlServer.Management.Smo Namespace
Otros recursos
Realizar copias de seguridad y restaurar bases de datos en SQL Server
BACKUP (Transact-SQL)