Skip to content

Latest commit

 

History

History
87 lines (71 loc) · 2.3 KB

File metadata and controls

87 lines (71 loc) · 2.3 KB
title CStreamRowset Class | 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::CStreamRowset<TAccessor>
ATL::CStreamRowset
CStreamRowset
ATL.CStreamRowset<TAccessor>
ATL.CStreamRowset
dev_langs
C++
helpviewer_keywords
CStreamRowset class
ms.assetid a106e953-a38a-464e-8ea5-28963d9e4811
caps.latest.revision 11
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

CStreamRowset Class

Used in a CCommand or CTable declaration.

Syntax

template <class TAccessor = CAccessorBase>  
class CStreamRowset  

Parameters

TAccessor
An accessor class.

Members

Methods

CStreamRowset Constructor. Instantiates and initializes the CStreamRowset object.
Close Releases the ISequentialStream interface pointer in the class.

Remarks

Use CStreamRowset in your CCommand or CTable declaration, for example:

[!code-cppNVC_OLEDB_Consumer#11]

or

[!code-cppNVC_OLEDB_Consumer#12]

ICommand::Execute returns an ISequentialStream pointer, which is stored in m_spStream. You then use the Read method to retrieve the (Unicode string) data in XML format. For example:

[!code-cppNVC_OLEDB_Consumer#13]

SQL Server 2000 performs the XML formatting, and will return all columns and all rows of the rowset as one XML string.

Note

This feature works with SQL Server 2000 only.

Requirements

Header: atldbcli.h

See Also

OLE DB Consumer Templates
OLE DB Consumer Templates Reference