Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> New query binds won't execute

New query binds won't execute

From: <jwainz_at_my-deja.com>
Date: 2000/04/28
Message-ID: <8ed16p$s1e$1@nnrp1.deja.com>#1/1

Using Microsoft ADO I created a prepared command. This creates a bind in Oracle. It works fine and is listed below:

SELECT * FROM daily_total_display WHERE lgon_id = :V001

Due to requirements I needed to add an ORDER BY to the command, so I changed the commandtext and run the app. The new query appears in v$sqltext and v$sqlarea as listed below:

SELECT * FROM daily_total_display WHERE lgon_id = :V001 ORDER BY :V002

When I run the app it still uses the 1st query even though I've made all the proper changes. It even threw errors initially when I forgot to fill the extra parm inside the ADO command. Any ideas how to delete the first command, or why it won't use the second command?

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Fri Apr 28 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US