PRB: Wizard Doesn't Generate Column or Param Map for JetID: Q191356
|
Using the ATL OLE DB Consumer Wizard with a Jet Query causes the Wizard to not generate column maps and parameter maps in the accessor class that it creates.
The Microsoft Jet 3.51 OLE DB Provider does not support the PROCEDURE_COLUMNS or the PROCEDURE_PARAMETERS rowsets, which are required for the ATL wizard, to provide necessary information for generating the column and parameter maps.
The following are two suggested workarounds for these issues.
DEFINE_COMMAND(CEmpAccessor, _T(" \
SELECT \
id, \
fname, \
lname \
FROM emp"))
becomes the following:
DEFINE_COMMAND(CEmpAccessor, _T(" \
SELECT \
id, \
fname, \
lname \
FROM empQuery"))
DEFINE_COMMAND(CQueryAccessor, _T("{ CALL EmpLName (?) }"))
Change to Stored Query definition:
DEFINE_COMMAND(CQueryAccessor, _T("PARAMETERS pId Short; SELECT
emp.lname FROM emp WHERE emp.id = pId;"))
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
This behavior is known to happen with the Microsoft Jet 3.51 Provider,
version 3.52.1527.4, which shipped with Visual C++ 6.0.
The Microsoft OLE DB Provider for ODBC in conjunction with the Access ODBC driver that shipped with Visual C++ 6.0 provide the necessary functionality for the Consumer Wizard to generate code that works in calling Jet Stored Queries.
Additional query words: KBVC600 kbJET kbOLEDB kbDatabase kbProvider kbwizard kbATL
Keywords : kbwizard kbATL kbDatabase kbJET kbOLEDB kbProvider kbVC600
Version : WINNT:6.0
Platform : winnt
Issue type : kbprb
Last Reviewed: July 26, 1999