| Home | How To | Online Documentation | Support | Download | Order |
|
|
virtual void Execute(); Executes the current command. Remarks Use the Execute method to execute the query
or stored procedure specified in the command text.
Execute
method calls Prepare method implicitly if needed. If the
command has input parameters, they should be bound before calling
Execute
method. Input parameters represented by SAParam object. To bind input
variables assign a value to SAParam
object returning by Param
or
ParamByIndex
methods or bind input
variables using stream operator <<. A command (an SQL statement or procedure) can have a result set after executing. To check whether a result set exists use isResultSet method. If result set exists, a set of SAField objects is created after command execution. Rows from the result set can be fetched one by one using FetchNext method. To get field description or value use Field method. Output parameters represented by SAParam objects. They are available after command execution. To get parameter description or value use Param or ParamByIndex methods. Server specific notesNo specific information. See alsosetCommandText, Prepare, RowsAffected, isResultSet, FetchNext Problems and QuestionsIf you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com. |
||||||||||||||||||