Exago .NET API Documentation
Execute Method
WebReports.Api.Data Namespace > SqlObject Class : Execute Method
Defaults to null
Set to true if the returned data set should be sorted and filtered by any in-memory sorts. Defaults to false.
Typically used when a report is requesting the execution of SQL, and the report contains a Cartesian product. Defaults to false

Executes the constructed SQL statement on the Data Source and returns a System.Data.DataSet object with the data returned from the Data Source.

Calling this method will also trigger the OnExecuteSqlStatementConstructed, OnFilterSqlStatementConstructed or OnParameterSqlStatementConstructed Server Event depending on its context.

Syntax
public override System.Data.DataSet Execute( 
   ActiveLocalExecution execution,
   System.bool sortAndFilter,
   System.bool hasCartesianData
)

Parameters

execution
Defaults to null
sortAndFilter
Set to true if the returned data set should be sorted and filtered by any in-memory sorts. Defaults to false.
hasCartesianData
Typically used when a report is requesting the execution of SQL, and the report contains a Cartesian product. Defaults to false

Return Value

A data set with the results of the query from the Data Source
Exceptions
ExceptionDescription
WrAllSqlStatementsGeneratedException is thrown if this SqlObject object is not to be executed, but ec=xists only for the generation of a constructed statement. If the IsSqlGenerationOnly property is true, this exception is thrown.
See Also

Reference

SqlObject Class
SqlObject Members
Base Implementation in Execute