Compartir a través de


BackupRestoreBase.ExecuteSqlAsync Method

Executes a batch of Transact-SQL statements asynchronously that does not expect a returned results set on the specified instance of Microsoft SQL Server.

Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Protected Sub ExecuteSqlAsync ( _
    server As Server, _
    queries As StringCollection _
)
protected void ExecuteSqlAsync (
    Server server,
    StringCollection queries
)
protected:
void ExecuteSqlAsync (
    Server^ server, 
    StringCollection^ queries
)
protected void ExecuteSqlAsync (
    Server server, 
    StringCollection queries
)
protected function ExecuteSqlAsync (
    server : Server, 
    queries : StringCollection
)

Parámetros

  • server
    A Server object that specifies the instance of SQL Server on which to execute the batch of Transact-SQL statements.
  • queries
    A StringCollection system object that contains the batch of Transact-SQL statements to be executed.

Notas

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

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

Otros recursos

RESTORE (Transact-SQL)
BACKUP (Transact-SQL)
Realizar copias de seguridad y restaurar bases de datos en SQL Server