Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Prepare Command with Nonexistent Table Returns Success with Jet OLEDB Provider


View products that this article applies to.

This article was previously published under Q293886

↑ Back to the top


Symptoms

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.

↑ Back to the top


More information

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.

↑ Back to the top


Keywords: KB293886, kbprb, kbmdacnosweep

↑ Back to the top

Article Info
Article ID : 293886
Revision : 5
Created on : 11/3/2003
Published on : 11/3/2003
Exists online : False
Views : 340