다음을 통해 공유


CStreamRowset 클래스

Used in a CCommand or CTable declaration.

template <class TAccessor = CAccessorBase>
class CStreamRowset

매개 변수

  • TAccessor
    An accessor class.

멤버

메서드

CStreamRowset

생성자입니다. Instantiates and initializes the CStreamRowset object.

닫기

Releases the ISequentialStream interface pointer in the class.

설명

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

CCommand< CAccessor<CCustomerAccessor>, CStreamRowset > myCmd;

또는

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. 예를 들면 다음과 같습니다.

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.

요구 사항

헤더: atldbcli.h

참고 항목

개념

OLE DB 소비자 템플릿(C++)

OLE DB 소비자 템플릿 참조