BackupRestoreBase.ExecuteSql(Server, StringCollection) BackupRestoreBase.ExecuteSql(Server, StringCollection) Method

Definition

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

protected:
 void ExecuteSql(Microsoft::SqlServer::Management::Smo::Server ^ server, System::Collections::Specialized::StringCollection ^ queries);
protected void ExecuteSql (Microsoft.SqlServer.Management.Smo.Server server, System.Collections.Specialized.StringCollection queries);
Parameters
server
Server Server

A Server object that specifies the instance of SQL Server on which to execute the batch of Transact-SQL statements.

queries
StringCollection StringCollection

A StringCollection system object that contains the batch of Transact-SQL statements to be executed.

Examples

Backing Up and Restoring Databases and Transaction Logs

Applies to