CStreamRowset Class
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at CStreamRowset Class.
Used in a CCommand or CTable declaration.
template <class TAccessor = CAccessorBase> class CStreamRowset
Parameters
TAccessor
An accessor class.
Methods
| 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:
CCommand< CAccessor<CCustomerAccessor>, CStreamRowset > myCmd;
or
CCommand< CNoAccessor, CStreamRowset > myCmd;
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:
BYTE pBuf[1024];
ULONG cbRead = 0;
myCmd.m_spStream->Read(pBuf, sizeof(pBuf), &cbRead);
SQL Server 2000 performs the XML formatting, and will return all columns and all rows of the rowset as one XML string.
This feature works with SQL Server 2000 only. |
Header: atldbcli.h
OLE DB Consumer Templates
OLE DB Consumer Templates Reference