Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 293886 - Last Review: November 3, 2003 - Revision: 3.2
PRB: Prepare Command with Nonexistent Table Returns Success with Jet OLEDB Provider
This article was previously published under Q293886
When ICommandPrepare::Prepare is called from a Command object on a nonexistent table, it returns an HRESULT of S_OK
instead of DB_E_ERRORSINCOMMAND(0x80040E14) or DB_E_NOTABLE (0x80040e37). This
behavior occurs with the Jet OLE DB Provider when calling ICommandPrepare::Prepare on a query that contains a table that does not exist.
When preparing a command that contains a nonexistent table,
other OLE DB providers may return either DB_E_ERRORSINCOMMAND or DB_E_NOTABLE.
With the Jet OLE DB provider, ICommandPrepare returns S_OK when the table in the command does not exist. The
Jet Provider returns DB_E_NOTABLE when you actually try to execute the command
by calling ICommand::Execute.
APPLIES TO
- Microsoft OLE DB Provider for Jet 4.0
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
- Microsoft Data Access Components 2.8
| kbmdacnosweep kbprb KB293886 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate