BackupRestoreBase.ExecuteSqlAsync Method (Server, StringCollection)

 

Applies To: SQL Server 2016 Preview

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

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

Syntax

protected void ExecuteSqlAsync(
    Server server,
    StringCollection queries
)
protected:
void ExecuteSqlAsync(
    Server^ server,
    StringCollection^ queries
)
member ExecuteSqlAsync : 
        server:Server *
        queries:StringCollection -> unit
Protected Sub ExecuteSqlAsync (
    server As Server,
    queries As StringCollection
)

Parameters

Examples

Legacy Code Example

Backing Up and Restoring Databases and Transaction Logs

See Also

BackupRestoreBase Class
Microsoft.SqlServer.Management.Smo Namespace
RESTORE (Transact-SQL)
BACKUP (Transact-SQL)

Return to top