Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BackupRestoreBase.ExecuteSqlWithResults Method (Server, String)


Executes a batch of Transact-SQL statements that expects one or more returned results sets on the specified instance of SQL Server.

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

protected DataSet ExecuteSqlWithResults(
	Server server,
	string cmd


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

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

Return Value

Type: System.Data.DataSet

A DataSet system object that contains the results sets returned by the executed Transact-SQL command batch.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft