Skip to content

Latest commit

 

History

History
96 lines (83 loc) · 2.27 KB

File metadata and controls

96 lines (83 loc) · 2.27 KB
title CTable::Open | 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
ATL.CTable.Open
ATL::CTable::Open
CTable::Open
CTable.Open
dev_langs
C++
helpviewer_keywords
Open method
ms.assetid 5d006d95-74d7-4e2b-b243-a33bc53b5455
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

CTable::Open

Opens the table.

Syntax

  
      HRESULT Open(  
   const CSession& session,  
   LPCWSTR wszTableName,  
   DBPROPSET* pPropSet = NULL,  
   ULONG ulPropSets = 0  
) throw ( );  
HRESULT Open(  
   const CSession& session,  
   LPCSTR szTableName,  
   DBPROPSET* pPropSet = NULL,  
   ULONG ulPropSets = 0  
) throw ( );  
HRESULT Open(  
   const CSession& session,  
   DBID& dbid,  
   DBPROPSET* pPropSet = NULL,  
   ULONG ulPropSets = 0  
) throw ( );  

Parameters

session
[in] The session for which the table is opened.

wszTableName
[in] The name of the table to open, passed as a Unicode string.

szTableName
[in] The name of the table to open, passed as an ANSI string.

dbid
[in] The DBID of the table to open.

pPropSet
[in] A pointer to an array of DBPROPSET structures containing properties and values to be set. See Property Sets and Property Groups in the OLE DB Programmer's Reference in the Windows SDK. The default value of NULL specifies no properties.

ulPropSets
[in] The number of DBPROPSET structures passed in the pPropSet argument.

Return Value

A standard HRESULT.

Remarks

For more details, see IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.

Requirements

Header: atldbcli.h

See Also

CTable Class