다음을 통해 공유


CCommand::GetNextResult

Fetches the next result set if one is available.

HRESULT GetNextResult(
   DBROWCOUNT* pulRowsAffected,
   bool bBind = true 
) throw( );

Parameters

  • pulRowsAffected
    [in/out] A pointer to memory where the count of rows affected by a command is returned.

  • bBind
    [in] Specifies whether to bind the command automatically after being executed. The default is true, which causes the command to be bound automatically. Setting bBind to false prevents the automatic binding of the command so that you can bind manually. (Manual binding is of particular interest to OLAP users.)

Return Value

A standard HRESULT.

Remarks

If a result set has been previously fetched, this function releases the previous result set and unbinds the columns. If bBind is true, it binds the new columns.

You should call this function only if you have specified multiple results by setting the CCommand template parameter TMultiple=CMultipleResults.

Requirements

Header: atldbcli.h

See Also

Reference

CCommand Class

Other Resources

CCommand Members