To use a statement
To use server cursors, you must set cursor attributes to values other than their defaults.
Or
If the statement was prepared, execute it multiple times by using SQLExecute.
Or
Call a catalog function, which returns results.
Fetch through the result set of a statement one row at a time.
Or
Fetch through the result set several rows at a time by using a block cursor.
Or
Call SQLRowCount to determine the number of rows affected by an INSERT, UPDATE, or DELETE statement.
If the SQL statement can have multiple result sets, call SQLMoreResults at the end of each result set to see if there are additional result sets to process.