BUG: Parameterized Queries that Are Not Prepared Fail to Execute Through DB2OLEDBID: Q235299
|
When you run a query containing parameter markers like the following:
UPDATE EMPLOYEE SET DEPTNO = 20 WHERE DEPTNO = ?and the query is not prepared using the ICommandPrepare::Prepare method, the OLE DB Provider for DB2 returns E_FAIL with the following error message:
Statement not prepared.
Prepare the command using the ICommandPrepare::Prepare method.
Microsoft has confirmed this to be a problem in Microsoft SNA Server version 4.0 Service Pack 2.
Additional query words: MSDB2OLE Mainframe AS/400 MVS OS/390 OS/400
Keywords :
Version : WINDOWS:4.0 SP2
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: June 28, 1999