CRowsetImpl::NameFromDBID

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

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.

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.

Remarks

This method is called by the CRowsetImpl implementations of ValidateCommandID and GetCommandFromID. It extracts a string from a DBID and copies it to the bstr passed in.

CRowsetImpl OverviewCRowsetImpl Class Members