Share via


CRowsetImpl::SetCommandText

 

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::SetCommandText.

Validates and stores the DBIDs in the two strings (m_strCommandText and m_strIndexText).

Syntax

  
      HRESULT CRowsetBaseImpl::SetCommandText(  
   DBID* pTableID,  
   DBID* pIndexID   
);  

Parameters

pTableID
[in] A pointer to the DBID representing the table ID.

pIndexID
[in] A pointer to the DBID representing the index ID.

Return Value

A standard HRESULT.

Remarks

The SetCommentText method is called by CreateRowset, a static templatized method of IOpenRowsetImpl.

This method delegates its work by calling ValidateCommandID and GetCommandFromID through an upcasted pointer.

Requirements

Header: atldb.h

See Also

CRowsetImpl Class