An NDoc Documented Class Library

HostIntegratorSession.ExecuteSQLStatement Method (String, Int32)

Executes an SQL statement on a table defined in the model.

public virtual DataSet ExecuteSQLStatement(
   string sqlStatement,
   int maxRows
);

Parameters

sqlStatement
Specifies the SQL statement to execute.
maxRows
Specifies the maximum number of rows to return. A value of zero will return all rows.

Return Value

This method returns a DataSet containing the results of the query. If no data are returned, this method returns an empty DataSet.

Remarks

Executes an SQL statement on a table defined in the model.

Exceptions

Exception TypeCondition
HostIntegratorModelDefExceptionThrown if the SQL statement cannot be resolved
HostIntegratorTerminalExceptionThrown if there is an execution error
HostIntegratorConnectorExceptionThrown when client is not connected
HostIntegratorExceptionThrown if the connection is for metadata only

See Also

HostIntegratorSession Class | WRQ.Verastream.HostIntegrator Namespace | HostIntegratorSession.ExecuteSQLStatement Overload List