| title | CRowsetImpl::NameFromDBID | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | 6aa5b074-90c7-4434-adfd-c64c13e76c78 | |||||||||||||
| caps.latest.revision | 9 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Extracts a string from a DBID and copies it to the bstr passed in.
HRESULT CRowsetBaseImpl::NameFromDBID(
DBID* pDBID,
CComBSTR& bstr,
bool bIndex
);
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.
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.
This method is called by the CRowsetImpl implementations of ValidateCommandID and GetCommandFromID.
Header: atldb.h