Поделиться через


CCommand::GetNextResult

Fetches the next result set if one is available.

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

Параметры

  • 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.)

Возвращаемое значение

A standard HRESULT.

Заметки

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.

Требования

Header: atldbcli.h

См. также

Основные понятия

CCommand Class

CCommand Members