Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at CRowsetImpl::NameFromDBID.
Extracts a string from a DBID and copies it to the bstr passed in.
Syntax
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