How to create a user-defined class to retrieve XML data from SQL Server 2000 in Visual C++ 6.0 (281430)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q281430 SUMMARY To retrieve tokenized XML data from SQL Server 2000, you
must request an ISequentialStream interface during the call to the ICommand::Execute method.
The Visual C++ 6.0 Active Template Library
(ATL) OLE DB Consumer Templates do not provide a way to request this interface
during the Execute call. This article provides information on how to create your own
class to provide this functionality.
REFERENCES Fora additional information on the classes that are
described in this article, see the Visual Studio 6.0 Service Pack 5 Readme
file. NOTE: The Readme file may provide a slightly different implementation
of the above classes, and requires changes to Atldblcli.h in order for those
classes to work. The classes provided in this article do not require any
modification to Atldbcli.h. For additional samples of how to retrieve
XML data from SQL Server 2000 using the OLE DB consumer templates, click the
article numbers below to view the articles in the Microsoft Knowledge Base:
272185 SAMPLE: How to Retrieve Data Using a SQL XML Query in ATL OLE DB
272181 SAMPLE: How to Retrieve Data Using a Template File in ATL OLE DB
Modification Type: | Major | Last Reviewed: | 6/2/2005 |
---|
Keywords: | kbinfo kbConsumer kbDTL kbhowto KB281430 kbAudDeveloper |
---|
|