FIX: CManualAccessor Does Not Work With Schema Rowsets (271577)
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
This article was previously published under Q271577 SYMPTOMS When you use the Active Template Library (ATL) Consumer
templates to get schema rowsets from a data store, it is impossible to use a CManualAccessor class and base the accessor on the metadata after retrieving the
rowset. It is only possible to set up the accessor before opening the
rowset.
The ATL Consumer classes provide specialized template classes
for most common schema rowsets based on a static CAccessor class such as CTables or CColumns. For this reason the problem described in this article only
manifests itself when you retrieve non-standard schema rowsets and base them on
the CManualAccessor class to avoid creating static accessors.
An example of
such schema rowsets are the multi-dimensional schema rowsets available with the
Microsoft OLE DB Provider for OLAP Services, such as MDSCHEMA_MEMBERS. CAUSE The CRestrictions and CSchemaRowset classes did not have a parameter in their Open method that specified whether an accessor should be bound in the Open method call. The CSchemaRowset::Open method called the CAccessorRowset::Bind method automatically, which required the accessor to be set up
before the Open method was called. RESOLUTION Install Visual Studio 6.0 Service Pack 5 and use the new
parameter available in the CRestrictions class to indicate that the accessor should not be bound in the Open call. For additional information, refer to the "More Information"
section. STATUSFor additional information about Visual Studio service packs, click
the following article numbers to view the articles in the Microsoft Knowledge
Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed To download the latest Visual Studio service pack, visit the
following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 12/12/2005 |
---|
Keywords: | kbATL300fix kbbug kbDatabase kbDTL kbfix kbVS600sp5fix KB271577 kbAudDeveloper |
---|
|