CDynamicAccessor::GetOrdinal
The latest version of this topic can be found at CDynamicAccessor::GetOrdinal.
Retrieves the column number given a column name.
Syntax
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