Any suggestions? Export (0) Print
Expand All

BackupRestoreBase.ExecuteSql Method (Server, StringCollection)


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)

protected void ExecuteSql(
	Server server,
	StringCollection queries


Type: Microsoft.SqlServer.Management.Smo.Server

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

Type: System.Collections.Specialized.StringCollection

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

Return to top
© 2016 Microsoft