Skip to content

Latest commit

 

History

History
70 lines (60 loc) · 1.67 KB

File metadata and controls

70 lines (60 loc) · 1.67 KB
title CRowsetImpl::SetCommandText | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
CRowsetImpl.SetCommandText
CRowsetImpl::SetCommandText
dev_langs
C++
helpviewer_keywords
SetCommandText method
ms.assetid e016d7df-c1a0-4dee-b19b-c876680221fd
caps.latest.revision 9
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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