description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CStreamRowset Class |
CStreamRowset Class |
11/04/2016 |
|
|
a106e953-a38a-464e-8ea5-28963d9e4811 |
Used in a CCommand
or CTable
declaration.
template <class TAccessor = CAccessorBase>
class CStreamRowset
TAccessor
An accessor class.
Header: atldbcli.h
Name | Description |
---|---|
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.
Instantiates and initializes the CStreamRowset
object.
CStreamRowset();
Releases the ISequentialStream interface pointer in the class.
void Close();
OLE DB Consumer Templates
OLE DB Consumer Templates Reference