Share via


CDynamicAccessor::GetOrdinal

Retrieves the column number given a column name.

bool GetOrdinal( 
   const CHAR* pColumnName, 
   DBORDINAL* pOrdinal  
) const throw( ); 
bool GetOrdinal( 
   const WCHAR* pColumnName, 
   DBORDINAL* pOrdinal  
) const throw( );

Parameters

  • pColumnName
    [in] A pointer to a character string containing the column name.

  • pOrdinal
    [out] A pointer to the column number.

Return Value

Returns true if a column with the specified name is found. Otherwise, this function returns false.

Requirements

Header: atldbcli.h

See Also

Reference

CDynamicAccessor Class