| title | CStreamRowset Class | 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 | a106e953-a38a-464e-8ea5-28963d9e4811 | |||||||||||||
| caps.latest.revision | 11 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Used in a CCommand or CTable declaration.
template <class TAccessor = CAccessorBase>
class CStreamRowset
TAccessor
An accessor class.
| CStreamRowset | Constructor. Instantiates and initializes the CStreamRowset object. |
| Close | Releases the ISequentialStream interface pointer in the class. |
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.
Header: atldbcli.h
OLE DB Consumer Templates
OLE DB Consumer Templates Reference