Share via


CRowsetImpl::NameFromDBID

Extracts a string from a DBID and copies it to the bstr passed in.

HRESULT CRowsetBaseImpl::NameFromDBID( 
   DBID* pDBID, 
   CComBSTR& bstr, 
   bool bIndex  
);

Parameters

  • pDBID
    [in] A pointer to the DBID from which to extract a string.

  • bstr
    [in] A CComBSTR reference to place a copy of the DBID string.

  • bIndex
    [in] true if an index DBID; false if a table DBID.

Return Value

A standard HRESULT. Depending on whether the DBID is a table or an index (denoted by bIndex), the method will either return DB_E_NOINDEX or DB_E_NOTABLE.

Remarks

This method is called by the CRowsetImpl implementations of ValidateCommandID and GetCommandFromID.

Requirements

Header: atldb.h

See Also

Reference

CRowsetImpl Class