Udostępnij za pośrednictwem


BackupRestoreBase.ExecuteSql Method

Executes a batch of Transact-SQL statements 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

'Deklaracja
Protected Sub ExecuteSql ( _
    server As Server, _
    queries As StringCollection _
)
protected void ExecuteSql (
    Server server,
    StringCollection queries
)
protected:
void ExecuteSql (
    Server^ server, 
    StringCollection^ queries
)
protected void ExecuteSql (
    Server server, 
    StringCollection queries
)
protected function ExecuteSql (
    server : Server, 
    queries : StringCollection
)

Parameters

  • 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.

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.